Go to Post It's still not about the robots. FIRST is about doing the right thing. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #3   Spotlight this post!  
Unread 23-03-2005, 17:02
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Question about switching autonomous modes

At Team 245, we have a rotary, 10-number (4-bit) switch that connects via Digital IO's.

To read in the value, define a macro AUTON_ROUTINE:

Code:
#define AUTON_ROUTINE (rc_dig_in10 | (rc_dig_in11 << 1) | (rc_dig_in12 << 2) | (rc_dig_in13 << 3))
In our case, we have our switch connected to Digital IO's 10, 11, 12, and 13. Adjust accordingly.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
 


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
a simple autonomous mode question chippermonky Programming 3 18-02-2005 01:54
A little question about the autonomous mode Anton Programming 4 18-01-2005 14:08
switching modes Allison Programming 8 06-04-2004 13:37
Alternative autonomous modes Jon Reese Programming 1 14-01-2004 13:17


All times are GMT -5. The time now is 11:05.

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