View Single Post
  #10   Spotlight this post!  
Unread 03-02-2005, 22:50
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Multiple Auton's

The OI switches and joysticks can be read by the robot any time autonomous mode is not active. It's no trouble to constantly read the value of a selector switch into a variable while auton_mode is false, and use that variable when auton_mode is true.

We liked having lots of autonomous options last year. Instead of eating up a bunch of switch inputs on the OI, we used a rotary switch to select between taps in a string of resistors and connected that to one of the joystick _aux inputs. The code saw an analog value, compared it against a collection of programmed low/high limits, determined which switch position had been selected, and stored a number representing that position in a global variable.

We'll be doing something similar this year.