View Single Post
  #4   Spotlight this post!  
Unread 27-01-2014, 22:24
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Vision Running Motor Even When goal is not found

Quote:
Originally Posted by Zaque View Post
Thanks for the reply. 1 and 2 are for testing purposes, so I could test the loops were working correctly and to save the flash memory of the cRIO. I was not aware of 3. If you could point out where that is happening and a potential fix for that, I would appreciate it.
Sorry, I was wrong on number 3.

I would recommend at the beginning of each loop setting the relay to stop, and then only turning it on when you see true.

Remember once you determine that the goal is hot, there is really no reason the check anymore.

I would recommend trying to use commands to do this, and have the first one "WaitForHot" finish when it sees hot (or 5 seconds passes) and the second one "Shoot"
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote