getLazyImu

protected fun getLazyImu(name: String = "imu", orientationOnRobot: ImuOrientationOnRobot): LazyImu?

Returns a LazyImu instance to use with RoadRunner drives. The difference between a regular IMU and a LazyImu is that the LazyImu is auto-initialised only when it is required via the {@code get()} call.

Parameters

name

the name of the IMU in HardwareMap

orientationOnRobot

the IMU orientation on the robot