NextFeedbackServo

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

Parameters

initializer

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

feedbackName

Hardware map name of the analog input.

cacheTolerance

Tolerance for the NextServo position caching delegate.


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

Constructor to create a NextFeedbackServo using a servo name.

Parameters

servoName

Hardware map name of the servo.

feedbackName

Hardware map name of the analog input.

cacheTolerance

Tolerance for the NextServo position caching delegate.


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

Constructor to create a NextFeedbackServo 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 NextServo position caching delegate.