Several autons on one program

  1. 4 weeks ago

    So I've been creating identical programs with the only differences being their autonomous. Is this necessary in VCS or no? It's very tedious and can get confusing with so many different files that are so similar. Is there any way to select one of several available autons in a single program (like during preauton or something)? Idk if this is a dumb question or not...

  2. sazrocks

    Dec 23 Arizona 2114V

    As a quick and simple solution use a potentiometer and in autonomous execute different autonomouses depending on what range of values the potentiometer is in.

    You can also build your own GUI for selecting autonomous before the match begins; some community members have already made some threads here on the forum about their own implementation.

  3. callen

    Dec 23 Braintree, MA, USA

    Yes. There are several ways to do it. The nicest but most complex is to start your pre-autonomous period with selections from the V5 brain's screen. You could do other things like having a potentiometer turned to certain spots and read when you start pre-autonomous. Jumpers can accomplish the same.

  4. I don't know about VCS but in PROS I have void functions for every auton and before the match, I select which auton I wand by calling the function in autonomous. If you want an auton selector on the field making one with the default emulator shouldn't be that hard.

  5. callen

    Dec 23 Braintree, MA, USA

    There is also a new way I'm not sure anyone has tried. You could make different cards to hold in front of your vision sensor during pre-autonomous. Use appropriate colors or color combinations and you could select what you want that way, too.

  6. Xenon

    Dec 23 Long Beach, California 99999V

    @callen There is also a new way I'm not sure anyone has tried. You could make different cards to hold in front of your vision sensor during pre-autonomous. Use appropriate colors or color combinations and you could select what you want that way, too.

    probably over-complicating things but hey, if it works.

  7. robonxt

    Dec 23 In a room where there are bots...

    @MLTurtle I just posted my code for a GUI system, check it out here: https://www.vexforum.com/index.php/36507-introducing-access-os-an-v5-controller-gui-system

    It should make your code a lot more unified

  8. JuiceBox

    Dec 23 Ohio 6741E

    @callen There is also a new way I'm not sure anyone has tried. You could make different cards to hold in front of your vision sensor during pre-autonomous. Use appropriate colors or color combinations and you could select what you want that way, too.

    This sounds cool!

  9. TaranMayer

    Dec 23 Arizona 6142w

    What we use are jumper clips in digital sensor ports (The legacy ports would work as well). We have functions set up for each tile, and then based on what port the jumper is in, it will run the corresponding autonomous.

  10. My team set up a case-switch in the pre-auton to cycle through the autonomous programs with a controller button and select the one desired before plugging into the field control tower. Each autonomous is labeled and prints to the controller so it's easy to see which one you have selected.

    Word of caution, you cannot use the controller to select once you plug into the field control. As long as you are familiar with the routine of selecting before plug-in, it's an easy way to have as many autonomous programs as you want on the same program.

  11. 3 days ago

    @Trobotics

    I think I would like to hear more about this. Sounds really similar to use of the LCD Display before? I think this would be much more manageable for my students.

  12. lacsap

    Jan 18 Event Partner, V5 Beta Tester Massachusetts 9791[a-z]

    Here is a V5 autonomous selection using the brain - one program controls all ...
    https://www.vexforum.com/index.php/36660-walshbots-autonomous-feature-selector

  13. 22 hours ago

    RupaliB

    22 hours ago NASA Ames Research Center 1868A

    Easiest is to make each of your autons a function and call them all in your auton super-function, commenting out the ones you're not going to use. Downside of that is if your alliance realizes they can't run something for some reason, there's chaos trying to get to the laptop and download with a new auton un-commented before the match starts.
    Most foolproof is a potentiometer.

  14. 21 hours ago

    Xenon

    21 hours ago Long Beach, California 99999V

    we just use a potentiometer dial to change our auton

 

or Sign Up to reply!