Go to Post I don't know how you can blame a robot getting stuck in the goal on the GDC. The field drawings showed all of the dimensions of the goals. If a team doesn't want to risk getting stuck then they need to plan around it. - JamesBrown [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
  #1   Spotlight this post!  
Unread 01-03-2009, 16:27
dboisvert dboisvert is offline
Registered User
AKA: Dan Boisvert
FRC #2405 (Divided by Zero)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Michigan
Posts: 57
dboisvert is an unknown quantity at this point
DS Digital Input/Output

Recently my team went to a competition and I asked for help with out driver station. We had purchased a few Light Switches from the local hardware store and I had no idea how to wire them properly.

So he helped me wire them properly and connect them to DS 1 and 2 on the Driver Station and now I need to figure out how to code them.

My current code looks like this

Code:
bool switch1;
switch1 = m_ds->GetDigitalIn(1);
printf("Switch Value is: %d  ", switch1);
I never got to look at the code extensively during the competition but as far as I know it printed out all 0's when the switch was in either position.


My next problem is we want to wire in a few LED's to the DS so we know what is going on with the robot

Code:
m_ds->SetDigitalOut( 1,true);
I know how to wire the led's but I need to know if this is the proper syntax to turn them on.
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