View Single Post
  #10   Spotlight this post!  
Unread 07-03-2009, 03:32
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Caņada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: DS Digital Input/Output

I have a question on the jumpers also, my code looks like this:

Code:
enum{
   ARCADE_MODE = 1,
   ENABLE_AUTONOMOUS = 2,
   DRIVE = 3,
}jumpers;
....
....
void OperatorControl(void)
{
   while(1)
   {
      if(ds->GetDigtalIn(DRIVE)==1)
      {
         myRobot->TankDrive(-rightstick->GetY(), -leftstick->GetY());
      }
      else
      {
         myRobot->Drive(-leftstick->GetY(), -rightstick->GetX());
      }
   }
}
This isn't really for competition reasons, except for merely trying to get the jumpers to work. When I don't plug in the jumper it drives like how the else statement is written, but when I put a jumper on jumper pin#3 on the driver station it doesn't go at all, and I've tried restarting the driver station and robot, and still same results, what is going on here? (I have counted the jumpers many times to make sure it was on the right one)
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote