NextCRServo

constructor(initializer: () -> CRServoImplEx, cacheTolerance: Double = 0.01)

Parameters

initializer

A function returning the backing CRServoImplEx. It will be invoked lazily the first time the servo is accessed.

cacheTolerance

Tolerance used by the Caching delegate for power updates; defaults to 0.01.


constructor(module: LynxModule, port: Int, cacheTolerance: Double = 0.01)

Constructor to create a NextCRServo using a LynxModule and port number.

Parameters

port

The servo port (in the range 0, 5).

cacheTolerance

Tolerance used by the Caching delegate for power updates; defaults to 0.01.


constructor(name: String, cacheTolerance: Double = 0.01)