View Single Post
  #3   Spotlight this post!  
Unread 05-02-2013, 13:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programmatically Toggling a Boolean Control

Quote:
Originally Posted by Anatole View Post
Basically, the program can run back and forth between true and false, but the user can hit the joystick button to manually override the back and forth.
You'd just need an outer case that checks your button press and if pressed, does what the button wants, if not pressed, continue with what a feedback loop says to do.

If you have a simplified specific example, we can help you refine it.

And like Michael said, a delaying sequence can be done in Teleop as a state machine, or put in Periodic Tasks as a true sequence.

Is this the kind of thing you're hoping to do?
Attached Thumbnails
Click image for larger version

Name:	RepeatUntilResetByButton.png
Views:	449
Size:	20.8 KB
ID:	13812  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2013 at 14:27.
Reply With Quote