Go to Post Im very proud of my kids, and my whole team, the passion and emotion here is what FIRST is all about :) - Kims Robot [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 06-10-2005, 21:58
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
on the fly vex autonomus mode

i just got the vex program module today. I'm using the code from http://www.vexlabs.com because I'm already using similar code on the FRC controller.

i would like to use rc_dig_in16 to enable and disable the autonomous mode. I've tried
Code:
 if(rc_dig_in16 == 1)
  {
	autonomous_mode = 1;
  }
  else if(rc_dig_in16 == 0)
  {
	autonomous_mode = 0;
  }
in both main.c and user_routines_fast.c

i think that my problem lies in the fact that autonomus is enabled differnetly on the vex controller because of the following code:
Code:
#if ENABLE_AUTONOMOUS_MODE
	txdata.user_cmd = 0x02;	   /* Tell master you want to be in auton mode. */
#endif
i bet i could get this to work if i knew the "code" for normal user mode i could do something like this:
Code:
if (rc_dig_in16 == 1)
{
	 txdata.user_cmd = 0x02;
}
else
{
	txdata.user_cmd = whatever is the user mode;
}
if anybody knows whether this will work or not, please help.
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


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
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
VEX Robotics vexrobotics FIRST Tech Challenge 8 30-03-2005 23:25
a simple autonomous mode question chippermonky Programming 3 18-02-2005 01:54
autonomus mode zooballski Rules/Strategy 2 13-01-2005 17:23
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 10:41.

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