|
Servo Help
Hello,
My team is trying to program a servo so when you press a joystick button it goes to a certain angle. I looked and the wpilib page and I saw the "exampleServo.set(0.5);" example code, but I'm not sure how to use a joystick button with that. I have tried various ways, but nothing has worked. Can anyone help me?
We are using a servo from ServoCity that turns 90°. It's plugged into a pwm port on the roboRio.
|