FTC Code
  • Welcome!
  • Page 7
  • Getting Started
    • Page 1
    • Choosing an IDE
    • Creating an OpMode
    • Motors
    • Servos
  • Common Module Applications
    • Linear Slides
    • Sweeper
    • Kicker
    • Claw
    • Turret
    • Cantilever
    • Four Bar
    • Flywheel
  • Vision
    • Page 2
    • Page 6
  • Odometry
  • Efficient Path Following
    • Page 4
  • Efficient Tele-op Control
    • Page 5
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

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

PreviousMotorsNextLinear Slides

Last updated 1 year ago

Was this helpful?