View Single Post
  #1   Spotlight this post!  
Unread 14-03-2009, 21:43
Shivang1923 Shivang1923 is offline
I make robot go VROOM VROOM!
FRC #1923 (MidKnight Inventors)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: West Windsor, NJ
Posts: 38
Shivang1923 has a spectacular aura aboutShivang1923 has a spectacular aura about
Re: Programming toggle switches to DS for different autonomous routines?

for the switches

You could just place this in the "other", "default" case in the robotmain vi for basic framework
and for advanced framework in disable vi "execute" case

my code uses less switches, and converts them into a number, you can just modify it as you need.

as for the drive commands, i would say do as Mark said, but i dont think it should make a difference except for the crab drive sections, and that is because the device refrences force a chain, but to be safe you should chain the errors like mark said.
Attached Files
File Type: vi GetSwitch.vi (9.4 KB, 52 views)

Last edited by Shivang1923 : 14-03-2009 at 21:46.
Reply With Quote