Autonomous Programs On the brain

  1. last week

    Lukyan_1

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

    I was wondering since I don't have V5 yet, do I need to make 8 different programs to have 8 different autonomous programs and put them in each slot of the brain or is there a way to load autonomous files into the main program?

  2. tabor473

    Dec 5 V5 Beta Tester OYES, WPI

    @Lukyan_1 I was wondering since I don't have V5 yet, do I need to make 8 different programs to have 8 different autonomous programs and put them in each slot of the brain or is there a way to load autonomous files into the main program?

    You would normally name 1 program that has 8 different autonomous functions and choose between them using whatever system you implement.

  3. Lukyan_1

    Dec 5 Woodbridge, VA 4303A

    @tabor473 how do I program that into the brain. I'm guessing I have to pick on the screen correct?

  4. tabor473

    Dec 5 V5 Beta Tester OYES, WPI

    @Lukyan_1 @tabor473 how do I program that into the brain. I'm guessing I have to pick on the screen correct?

    You implement whatever system you want to use. You can even just download your program every match with a variable changed.

  5. goofnrox

    Dec 5 Jenison MI Jenison Robotics

    You can do it any way you want. One program with all the autonomous, or several programs that run individually. It's all how you code it.

  6. Joshua_L

    Dec 7 Virginia 80708X Exobytes

    Is there a way to utilize the touchscreen on the brain to choose the autonomous?

  7. Yes. Watch for touches in main and store information in global variables that autonomous can refer to.

  8. Lukyan_1

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

    @Joshua_L Here is what Kselva wrote

    @Kselva20 @Lukyan_1 You could have all autons on a competition template. In pre auton, I have the gyro calibrate and then have an auton selection printing on the brain waiting for input. Then, the loop breaks once input has been received, a global variable will be declared. Then, use a switch loop to go through the variable in the auton task. Depending on the value, it will call a specific auton task. I have not attempted to use the #include command to incorporate files and call the methods from a separate file, so I am not sure if it as simple as that. If you end up figuring it out, please let me know because that sounds like it is much more efficient and easier to read for tech journals.

    Im not sure myself, if u figure it out tell me plz

    @John TYler What do you mean watch for touches in the main?

  9. Joshua_L

    Dec 7 Virginia 80708X Exobytes

    I found this post.

  10. [TVA]Connor

    Dec 7 South Texas 1814D

    @Joshua_L I found this post.

    That was very cash money of you
    Since I moved to PROS, I think i may release my C++ Pro code of my menu screen which uses buttons sometime today.

  11. Lukyan_1

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

    @Joshua_L Thx budd

    @[TVA]Connor plz do

 

or Sign Up to reply!