Go to Post You all have made me think about this in a new way - which I appreciate. - aaeamdar [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Input? boris C/C++ 1 30-01-2009 14:51
Switch digital input to output during operation? Parallax Ultrasonic wt200999 C/C++ 2 28-01-2009 19:30
live input/output to/from application MarkH Programming 3 06-04-2006 01:43
digital output frequency Barth Programming 8 06-03-2005 21:58
Dynamic Input/Output Changing Paolo Control System 6 23-09-2004 19:09


All times are GMT -5. The time now is 18:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi