View Single Post
  #4   Spotlight this post!  
Unread 12-02-2011, 10:56
Mtg Ruler Mtg Ruler is offline
Registered User
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Lee's Summit, MO
Posts: 21
Mtg Ruler is an unknown quantity at this point
Re: How do i change pwm for a specific motor and/or servo in teleop?

For Motors: WPI Robotics Library->Actuators->MotorControl->Set Speed
Speed is [-1,1]

For Servo Angles: WPI Robotics Library->Actuators->Servo->Set Angle
Angle is in degrees

For Servo Position: WPI Robotics Library->Actuators->Servo->Set Position
Angle is [0,1]

You will also need to open a reference for that motor/servo in Begin.vi


To change the PWM, you will need some additional code that will take some kind of input and convert it into pulse (ex. pressing a button sets the motor output to 1)
Reply With Quote