Continuously Rotating Servos
Last updated
Was this helpful?
Last updated
Was this helpful?
These servos don’t have Max/Min positions, but simply rotate slowly in a circle like a small DC motor. They will spin in one direction if you give them a value above 0.5 and the other direction if you give them a value lower than 0.5.
Open up your original teleOpMode. This OpMode should have all your Drive code in it, we will just add servo control to it.
Initialize the servo like this:
Tell your robot where to find the Servo in the hardwareMap section:
Add the following code to control your servos. This will go in the main loop.