View Single Post
  #4   Spotlight this post!  
Unread 13-02-2010, 13:43
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: global variables and autonomous independent

One way is to read the analog slider and wire it to the case structure. The value will automatically be converted to an integer and you can add cases for 1, 2, and 3.

Set the slider on the DS, run the autonomous, and put something in your code, like a breakpoint or probe so you can verify the right code is running.

Greg McKaskle
Reply With Quote