v5 Autonomous Program

  1. last week

    How do you start an autonomous program with the new v5 system

    Thanks that helps a lot

  2. meepmeepme

    Dec 4 Honolulu, Hawaii (Saint Louis ... 42700B/C

    check out main{} in the competition template

  3. Do we have to use an autonomous switch?

  4. To start program in the v5 brain

  5. InsertString

    Dec 4 Vancouver, BC, Canada 2D
    Edited last week by InsertString

    @Manager2.0

    Do we have to use an autonomous switch to start program in the v5 brain?

    No you do not. When you turn on the brain there is a menu, click on the program folder and then click on your program. Then you will have the option to run, run timed or run competition. Pressing RUN TIMED should start the program starting will autonomous. Or you could use the RUN COMPETITION to run a programming skills run.

  6. Lukyan_1

    Dec 4 Woodbridge, VA 4303A
    Edited last week by Lukyan_1

    When you first open up the VCS, go to the example program instead of choosing what language you are going to use. After that, scroll down and click on Competition option and press choose. After you've done that, select what language it should open up the template in.

    If you want to start your own, make sure you include vex::competition Competition;
    Then when you make your user control and autonomous void (make sure user control*** of them have a loop in the end so it doesn't quit the void)

    In your main, plug the pre auton first if you have it, and then write

    Competition.autonomous(ureautonvoidname);
        Competition.drivercontrol(ureusercontrolvoidname);

    in the end, add a loop that sleeps for 20Msec so it doesn't exit the main until turned off.

  7. Manager2.0

    Dec 5 Answer

    Thanks that helps a lot

 

or Sign Up to reply!