View Single Post
  #2   Spotlight this post!  
Unread 17-01-2015, 12:41
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 990
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: RobotPy doesn't PWM?

I don't know Python, but I can tell you what the issue is based on WPILib. The code you have posted will construct two speed controllers, set their outputs to .125, construct a Robot Drive out of those speed controllers, then in Teleop set their outputs based on the joystick value.

Reading the above,you may notice that setting their outputs to .125 there doesn't really accomplish much.

If you want to scale your joystick values, you need to get the joystick values (using getX and getY) scale them, then pass them into an alternate version of the ArcadeDrive method that takes doubles as parameters.