Deprecated Hardware
Deprecated Classes & Interfaces
SolversHardware
ServoEx Interface and SimpleServo Class
ServoEx servo = new SimpleServo(
hardwareMap, "servo_name", MIN_ANGLE, MAX_ANGLE
);
// the above is functionally equivalent to
servo = new SimpleServo(
hardwareMap, "servo_name", MIN_ANGLE, MAX_ANGLE,
AngleUnit.DEGREES
);
// if you want to set the range in radians in the constructor
// you can use the following
servo = new SimpleServo(
hardwareMap, "servo_name", MIN_ANGLE, MAX_ANGLE,
AngleUnit.RADIANS
);Last updated