on Ready
protected abstract fun onReady(@Nullable selectedOpMode: Reference<out Any>, @NonNull selectedButton: Controls)
Called when the OpMode is ready to process tasks. This will happen when the user has selected an OpMode, or if setOpModes returned null, in which case it will run immediately after static_init
has completed. This is where you should add your tasks to the run queue.
Parameters
selected Op Mode
the OpMode selected by the user, if applicable. Will be NULL if the user does not select an OpMode (and OpModes were available). Will be an empty reference if setOpModes returned null (no OpModes to select).
selected Button
the button selected by the user. Will be Controls.NONE if no selection is made or given.