init

open fun init(opMode: OpMode)

Initializes the API to use the given opMode.

This must be called before any other function provided by the API.

Note to Implementors

Make sure to call super.init(opMode) at the beginning of the overloaded function, or the API will not properly store a reference to the op-mode.

Throws

If called more than once.

If API requires a LinearOpMode but one was not passed in.