View Single Post
  #2   Spotlight this post!  
Unread 14-03-2009, 17:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Programming toggle switches to DS for different autonomous routines?

A couple of problems...

First, the Driver Station switches cannot be read during Autonomous. For your purpose they must be read BEFORE autonomous begins and remembered for use here. How you do that depends on the Framework you started with (Basic or Advanced). There are CD threads on this topic you can checkout along with sample code.

Second, as written, all your drive commands will actually occur all at once. To sequence them you must tie the error output of each Delay & Feed to the next Tank Drive command you want to have happen.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote