setOpModes

protected fun setOpModes(@Nullable selectableOpModes: List<Any>)

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"
    );
    // Use `StartingPositions.use();` for using the four Robot starting positions

protected fun setOpModes(@Nullable selectableOpModes: Array<Any>)

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)