Servos

Programming Servos

Servos are rotational motors with less power and more fine movement than DcMotors in FTC. They are more commonly used when something relatively light needs to be turned to a precise position.

Servo Initialization

Just like in the motors, hardwareMap is used to initialize the servo.

Servo claw;
claw = hardwareMap.get(Servo.class, "claw");

The only difference in the initialization of a motor and servo is using the Servo object to create the servo variable, as well as using Servo.class

Last updated

Was this helpful?