init

fun init(opMode: OpMode): RobotConfig

Uses the HardwareMap to fetch HardwareDevices and assign instances from onRuntime. Should be called as the first line in your init cycle. This method can only be executed once.

Return

the instance of the RobotConfig

Parameters

opMode

the OpMode instance - usually the this object when at the root OpMode.


Implicit OpMode config initialisation for use in BunyipsOpModes. This will not work in normal SDK OpModes.

Uses the HardwareMap to fetch HardwareDevices and assign instances from onRuntime. Should be called as the first line in your init cycle.

Return

the instance of the RobotConfig

See also

(opMode: OpMode)

Throws

if not called from a BunyipsOpMode.