finish

fun finish(safeHaltHardwareOnStop: Boolean = true)

Call to manually finish the OpMode.

This is a dangerous method, as the OpMode will end main thread code and optionally disable hardware while still remaining active on the Driver Station. This allows post-review of telemetry as it is cleared when the OpMode ends.

This method should be called when the OpMode is finished and no longer needs to run, and will put the OpMode in a state where it will not run any more code (including timers & telemetry).

Parameters

safeHaltHardwareOnStop

If true (default), all motors/devices will be actively told to stop for the remainder of the OpMode.