Thread: Servo Help
View Single Post
  #1   Spotlight this post!  
Unread 02-21-2016, 03:48 PM
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
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.
Reply With Quote