Updated Automatically Loading a Driver Controlled Op Mode (markdown)

FTC Engineering
2020-12-01 14:04:01 -05:00
parent 41d73ba0f3
commit ccd77783aa

@ -20,14 +20,14 @@ To activate it, simply tap the (translucent) button and select an op mode. The b
Should you then wish to disable it, simply long press the preselect button. It will become translucent again and the text adjacent to it will disappear. Should you then wish to disable it, simply long press the preselect button. It will become translucent again and the text adjacent to it will disappear.
After the Autonomous program ends, the Driver Station changes the queued OpMode to the TeleOp program which was preselected before the start of Autonomous. The auto-preselection will be aborted if the user presses stop (either the main stop or init stop buttons). It will only transition if the OpMode either self-exits, or is terminated by the 30s timer. Drive Teams must still press init and start the op mode manually, for safety reasons. After the Autonomous program ends, the Driver Station changes the queued OpMode to the TeleOp program which was preselected before the start of Autonomous. The auto-preselection will be aborted if the user presses stop (either the main stop or init stop buttons). It will only transition if the OpMode either self-exits, or is terminated by the 30s timer. Drive Teams must still press Init and start the op mode manually, for safety reasons.
Should you wish to not be required to manually enable and configure the preselection feature each time you want to run your Autonomous program, you can edit your OpMode annotation to include preselectTeleOp="My TeleOp Name". The Driver Station will then automatically activate the preselection feature and configure it to preselect the OpMode specified in the annotation. Should you wish to not be required to manually enable and configure the preselection feature each time you want to run your Autonomous program, you can edit your OpMode annotation to include preselectTeleOp="My TeleOp Name". The Driver Station will then automatically activate the preselection feature and configure it to preselect the OpMode specified in the annotation.
``` ```
@Autonomous(name="Blue Alliance Auto", group="Pushbot", preselectTeleOp="BlueAllianceTeleOp") @Autonomous(name="Blue Alliance Auto", group="Pushbot", preselectTeleOp="BlueAllianceTeleOp")
``` ```
<p align="center">Use the preselectTeleOp parameter to specify a preselected op mode.<p> <p align="center">Use the preselectTeleOp parameter to specify a preselected op mode. Driver must still press Init button for safety reasons.<p>
Blocks users can make use of this feature as well, through a new dropdown in the Blocks program editor. Blocks users can make use of this feature as well, through a new dropdown in the Blocks program editor.