onFinish

protected open fun onFinish()

Perform one time clean-up operations after the activeLoop finishes all intentions gracefully.

This method is called after a finish or exit call, but may not be called if the OpMode is terminated by an unhandled fatal exception/early stop.

This method is useful for ensuring the robot is in a safe state after the OpMode has finished. In an exception-less OpMode, this method will be called before onStop.

See also