Log in

View Full Version : How do you turn on the Autonomous mode (to test)?


Salik Syed
02-03-2004, 14:38
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
set team number to 0000

Jason Rudolph
02-03-2004, 14:53
Go to http://www.innovationfirst.com/FIRSTRobotics/pdfs/Competition_Port_Pinout_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
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,

autonomous_mode = p1_sw_top;
if (autonomous_mode)

{

User_Autonomous_Code();

}

Ryan M.
02-03-2004, 20:32
Go to http://www.innovationfirst.com/FIRSTRobotics/pdfs/Competition_Port_Pinout_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 recommendedThis 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
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
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