NextFeedbackCRServo

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

Parameters

initializer

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

feedbackName

Hardware map name of the analog input.

cacheTolerance

Tolerance for the NextCRServo power caching delegate.


constructor(servoName: String, feedbackName: String, cacheTolerance: Double = 0.01)

Constructor to create a NextFeedbackCRServo using a servo name.

Parameters

servoName

Hardware map name of the servo.

feedbackName

Hardware map name of the analog input.

cacheTolerance

Tolerance for the NextCRServo power caching delegate.


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

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

Parameters

port

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

feedbackName

Hardware map name of the analog input.

cacheTolerance

Tolerance for the NextCRServo power caching delegate.