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.
Hardware map name of the analog input.
Tolerance for the NextCRServo power caching delegate.
Constructors
Constructor to create a NextFeedbackCRServo using a servo name.
Constructor to create a NextFeedbackCRServo using a LynxModule and port number.
Properties
Direction of the servo. Setting this to DcMotorSimple.Direction.REVERSE causes positive power values to spin the servo the opposite way, and vice versa.
Functions
Sets the servo's direction to DcMotorSimple.Direction.REVERSE, causing positive power values to spin the servo the opposite way.