setPower

open fun setPower(power: Double)

Update system controllers and propagate new power levels to the motor.

Note: This method must be called periodically (as part of the active loop) in order to update the system controllers and timers that respond to dynamic conditions.

Parameters

power

the new power level of the motor, a value in the interval [-1.0, 1.0]; this value is scaled by setMaxPower, if used.