set Op Modes
Call to define your OpModeSelections, if you list any, then the user will be prompted to select an OpMode before the OpMode begins. If you return null/don't call this method, then the user will not be prompted for a selection, and the OpMode will move to task-ready state immediately. This determines what is to be used in the parameters of onReady.
setOpModes(
"GO_PARK",
"GO_SHOOT",
"GO_SHOOT_AND_PARK",
"SABOTAGE_ALLIANCE"
);
// See the StartingConfiguration class for advanced builder patterns of robot starting positions,
// which is the recommended way to define OpModes (OpModes themselves define objectives, not positions)
Content copied to clipboard
Call to define your OpModeSelections, if you list any, then the user will be prompted to select an OpMode before the OpMode begins. If you return null, then the user will not be prompted for a selection, and the OpMode will move to task-ready state immediately.
setOpModes(
"GO_PARK",
"GO_SHOOT",
"GO_SHOOT_AND_PARK",
"SABOTAGE_ALLIANCE"
);
// See the StartingConfiguration class for advanced builder patterns of robot starting positions,
// which is the recommended way to define OpModes (OpModes themselves define objectives, not positions)
Content copied to clipboard