Autonomous Problem

We are programming autonomous into the competition template, but when we activate autonomous it does not work. How does autonomous actually start? Should it begin right when you turn on you’re cortex, or like a video game where you press any button to start.

// Pre-Autonomous Functions
//
// You may want to perform some actions before the competition starts. Do them in the
// following function.
//
/////////////////////////////////////////////////////////////////////////////////////////
void pre_auton()
{
// Set bStopTasksBetweenModes to false if you want to keep user created tasks running between
// Autonomous and Tele-Op modes. You will need to manage all user created tasks if set to false.
bStopTasksBetweenModes = true;

// All activities that occur before the competition starts
// Example: clearing encoders, setting servo positions, ...

}

/////////////////////////////////////////////////////////////////////////////////////////
//
// Autonomous Task
//
// This task is used to control your robot during the autonomous phase of a VEX Competition.
// You must modify the code to add your own robot specific commands here.
//
/////////////////////////////////////////////////////////////////////////////////////////

task autonomous()
{
//StartTask(autonomous);

// autonomous

wait10Msec(10);
motor [frontMotor]= -127;
motor [backMotor]= -127;
wait10Msec (20);

Is it a program problem, cortex problem that can’t be fixed, or maybe even a controller problem? Maybe a combination of both. If you have any idea’s they are greatly appreciated :smiley:

A Vex Field can put the Joystick/Cortex linked system in Autonomous Mode or it can be done manually by using a VEXnet Competition Switch. For more details, see our web page: http://www.vexrobotics.com/276-2335.html

Is that the sole way of turning on autonomous? Or are there other ways. Also, do you see faults in the programming, or think there could be a different issue? Were a 1st year team, so were not to familiar with this whole thing.

There is Competition Switch Simulator via your Programming Software. If you need help with your Programming Software or Code, your best option is to contact them directly. I will also move your Post to our VEX Community as they can also help. If you have problems contacting them directly, please send us an email to [email protected].

http://www.robotc.net/wiki/VEX2_Competition

I think this link should be helpful. If you’re using RobotC, you can use the built in competition switch that Ricky Torrance is talking about (see section “Testing with VEXnet - Debugger”). If you’re using easyC, maybe somebody else can help, but other sections from that wikilink might also be useful.