Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How do you turn on the Autonomous mode (to test)? (http://www.chiefdelphi.com/forums/showthread.php?t=26298)

Salik Syed 02-03-2004 14:38

How do you turn on the Autonomous mode (to test)?
 
Hi i can't test autonomous, what i did was put some code in user routines where if a joystick trigger is pressed the autonomouse mode var is set to 0 but when i do it nothing happens????? I can still control the robot!

Tom Bottiglieri 02-03-2004 14:39

Re: How do you turn on the Autonomous mode (to test)?
 
set team number to 0000

Jason Rudolph 02-03-2004 14:53

Re: How do you turn on the Autonomous mode (to test)?
 
Go to http://www.innovationfirst.com/FIRST...nout_Guide.PDF

and make yourself a dongle, having a couple of switches to test auton, and to be able to disable the robot when needed are both invaluable, plus if you want to showcase multiple robots, you can change the channel of the radio as well. Highly recommended

Mark McLeod 02-03-2004 15:01

Re: How do you turn on the Autonomous mode (to test)?
 
Quote:

Originally Posted by Salik Syed
Hi i can't test autonomous, what i did was put some code in user routines where if a joystick trigger is pressed the autonomouse mode var is set to 0 but when i do it nothing happens????? I can still control the robot!

Normally, you'd be wanting to set the autonomous_mode = 1.

a la,
Code:

autonomous_mode = p1_sw_top;
if (autonomous_mode)

{

User_Autonomous_Code();

}



Ryan M. 02-03-2004 20:32

Re: How do you turn on the Autonomous mode (to test)?
 
Quote:

Originally Posted by Jason Rudolph
Go to http://www.innovationfirst.com/FIRST...nout_Guide.PDF

and make yourself a dongle, having a couple of switches to test auton, and to be able to disable the robot when needed are both invaluable, plus if you want to showcase multiple robots, you can change the channel of the radio as well. Highly recommended

This method is the most convinent and safe. It allows you to quickly diable the robot if it goes berserk. (and it will...)

Salik Syed 02-03-2004 22:33

Re: How do you turn on the Autonomous mode (to test)?
 
Thanx mark....(and others also) for the code.... i see what i did wrong ....
I didn't put this in:
if (autonomous_mode)

{

User_Autonomous_Code();

}


I thought that maybe just setting auton = 1 would do the trick i didn't know about that..

JBabbie 03-03-2004 23:37

Re: How do you turn on the Autonomous mode (to test)?
 
you could always copy and paste your code onto the bottom of user_routines.c and put an if statement over it...

if (p1_sw_trig = 1)
run your auto code kinda thing


All times are GMT -5. The time now is 19:36.

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