Multiple Autonomous

I need to know how to use multiple autonomous. I have a competition Saturday, I have an LCD display, but I didnt order the cords for them, and I dont have any available potentiometers. I would like to be able to have three, but I at least need three. Please let me know if this is possible and how ASAP.
Thanks

Use some jumpers or a potentiometer…

Recently shown here…
https://vexforum.com/t/multi-autonomous-using-jumpers/24913/1

Potentiometer would check for ranges of values versus on/off of jumpers in specific slots.

The other (incredibly stupid) way we did this my Freshman year before I had any sensors to work with was to download new code for each match based on what you wanted to run. It prevents you from making the decision on the field, but if you don’t want to figure out the programming it’s an option.

Just throwing that out there.

That’s what our 323X team has been doing. They havn’t had a lot of time to learn all the programming (being a new team), so they just downloaded a new file once they figured out what starting tile they would be starting on. Having an LCD is better though :slight_smile: Jumpers, and potentiometers also work well for selecting autonomous.

Thank you guys, and I have the LCD display but the cords wont be in in time. Im just going to use the jumpers this match. Again thank you all

how/ where do you put the “#pragma config(Sensor…” Im new (obviously) please help. Thanks

as already said, LCD, potentiometers, encoders with speakers, and jumpers all work well (as well as downloading new code every match)

  • but a very simple selection process (not recommended) is limit switches and using elastic bands and standoffs, or using bumper and having elastic bands all the way around etc

^ not very nice to do, but defo do-able

In ROBOTC that would be under Robot > Motor and Sensors Setup (IIRC–I don’t have it open at the moment). There are different tabs for different port types (e.g. analog, digital, and motor).

In ROBOTC, you don’t ever have to type anything beginning with “#” until you get into some more advanced programming–anything you’d commonly do is auto-generated.

//Andrew

Another great alternative is to use limit switches. You can attach them on the back of the robot somewhere and use rubberbands to hold the switch down to choose what autonomous you wish to use. It is a quick and cheap way instead using the LCD display and it is also easy to program. :smiley:

Programing a digital port is all the same, whether you use a bumper, limit switch, or jumper, the program would be the same. Therefore you might as well use a jumper clip because they’re easier to use in my opinion.

So do you use if in Easyc as well? Or would that go into varibles?

I don’t quite understand your question. I don’t use easyC at all… I don’t think you need to declare variables in easyC to use their if statement, but I don’t know…

EasyC does not have the #pragma capability, it’s unique to ROBOTC.

We have 4 bumper switeches for 4 autonomous programs