Updated Automatically Loading a Driver Controlled Op Mode (markdown)

FTC Engineering
2020-12-01 13:52:33 -05:00
parent 624ab434e9
commit d0e952955a

@ -22,7 +22,14 @@ Should you then wish to disable it, simply long press the preselect button. It w
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. Blockly users can make use of this feature as well, through a new dropdown in the Blockly program editor.
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")
```
<p align="center">Use the _preselectTeleOp_ parameter to specify a preselected op mode.<p>
Blockly users can make use of this feature as well, through a new dropdown in the Blockly program editor.