How to run auto in the v5 cortex


#1

Our team has some code for auto and we are using the competition template, but after downloading the program to the v5 cortex, we can’t figure out how to run auto. Does anyone know how to do this?


#2

What coding language are you using?


#3

We are using coding studio c++ pro?


#4

#5

Your code should be something like this, I think:

void auton( void ) {
*insert auton code here*
}
void usercontrol( void ) {
*insert driver code here*
}
int main() {

Competition.autonomous( auton );

Competition.drivercontrol( usercontrol );
}

You can rename the auton and usercontrol to whatever you want, the code just calls on those functions when those portions of a match are run.


#6

I hate to sound like a troll, but it is NOT the V5 “Cortex”. It is known as the the V5 Brain. The Cortex is the system that has been replaced by V5. It is important to use proper terminology, so no one gets confused.