Go to Post The strength of an alliance is not defined strictly by the sum of its parts. - Jared Russell [more]
Home
Go Back   Chief Delphi > Other > VEX
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 29-01-2007, 13:42
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,270
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Autonomous Switching

Quote:
Originally Posted by Mark McLeod View Post
Sure. Even a simple jumper on any one of your digital inputs would work.
For example:
Code:
if (rc_dig_in01 == 1) // Can use a simple jumper to pick the autonomous to use
{
	 printf("This is Autonomous_1\r");
	 Autonomous_1();
}
else
{
	 printf("This is Autonomous_2\r");
	 Autonomous_2();
}
If you want more than 2 modes you can use multiple digital inputs(I like switches more than jumpers but they are essentially the same thing) 1 digital input gives you 2 possible modes, 2 inputs gives you 4, 3 gives you 8 etc.

Another thing you can do is if between the modes you just want to change one variable (ie a delay before the code executes) you can use a pot(potentiometer) connected to an analog input and then tie the input from the pot to a variable in your code.

If you have any other questions just ask.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
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
Switching Channels Fred Agnir Control System 5 20-01-2006 20:54
Question about switching autonomous modes DemonYawgmoth Programming 2 23-03-2005 17:02
switching joysticks ten3brousone Control System 1 06-03-2005 20:51
switching joysticks ten3brousone Electrical 1 06-03-2005 20:51
Switching allys? archiver 1999 1 23-06-2002 22:34


All times are GMT -5. The time now is 22:23.

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