|
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)
|