View Single Post
  #4   Spotlight this post!  
Unread 09-03-2014, 12:30
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Netbeans programming ONE motor on axis of Logitech Attack 3

Quote:
Originally Posted by Whippet View Post
Motor.setSpeed(joystick.GetRawAxis(1));

Where 1 can be replaced with your joystick axis, joystick can be replaced with your joystick name, and motor with the name of your PWM output.
So I have

Pulley.setSpeed(operator.getRawAxis(2));

It is coming up as a wrong command saying:

setSpeed(double) is not public in PWM; cannot be accessed from outside package

How do I fix this?

Thanks
Reply With Quote