How to run auto in the v5 cortex

  1. 2 months ago

    CHINESEISASIAN

    Oct 9 Southington Connecticut 195a

    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. Baguette123

    Oct 9 Earth 2775J

    What coding language are you using?

  3. CHINESEISASIAN

    Oct 9 Southington Connecticut 195a

    We are using coding studio c++ pro?

  4. CHINESEISASIAN

    Oct 9 Southington Connecticut 195a

    @Baguette123 What coding language are you using?

  5. Baguette123

    Oct 9 Earth 2775J
    Edited 2 months ago by Baguette123

    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. 536Mentor

    Oct 10 Event Partner, V5 Beta Tester Appleton, WI 536

    @CHINESEISASIAN 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?

    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.

 

or Sign Up to reply!