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