NextFeedbackCRServo
A NextCRServo paired with an analog feedback input for reading the servo's actual angle. Useful for continuous-rotation servos with feedback wires (e.g. Axon CR) where you want to know how far the servo has rotated.
Inherits everything from NextCRServo — power, direction, reverse(), enable(), disable() — and adds angle for reading the physical angle in radians from the feedback input.
Parameters
A function returning the backing CRServoImplEx. It will be invoked lazily the first time the servo is accessed.
A function returning the backing AnalogFeedback used to read the feedback angle. Accepts any AnalogFeedback implementation.
Tolerance for the NextCRServo power caching delegate.
Constructors
Constructor to create a NextFeedbackCRServo using a servo name and an already-constructed AnalogFeedback instance for the feedback input.
Constructor to create a NextFeedbackCRServo using a LynxModule and port number for the servo, and an already-constructed AnalogFeedback instance for the feedback input.
Properties
Direction of the servo. Setting this to NextMotor.Direction.REVERSE causes positive power values to spin the servo the opposite way, and vice versa.
Functions
Sets the servo's direction to NextMotor.Direction.REVERSE, causing positive power values to spin the servo the opposite way.