View Single Post
  #3   Spotlight this post!  
Unread 01-04-2009, 21:39
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 212
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Autonomous Switching Questions

Quote:
Originally Posted by jph399 View Post
I plan on being able to throw a jumper on the 1st,2nd or 3rd digital input on the driver station and thus choosing which of the 3 routines I want right before the match.
Your problem is that the Digital Inputs on the DS are floating. That means that there is no guarantee which value (true or false) will be read when there is nothing connected to the input. The best way is to use a pull-up resistor (2k is probably OK) between +5 and the signal and a switch between ground and the signal. When the switch is open, the signal is pulled to +5 (true). When the switch is closed, the signal is grounded (false).

You have to read the DIs during disabled mode - where depends on whether you are running the Basic or Advanced Framework. After reading the DIs, write them to a Global that you read during Autonomous mode.

I suggest that you download FMS Lite and run it to insure that you go through the autonomous mode that you are trying to select.
Reply With Quote