View Single Post
  #4   Spotlight this post!  
Unread 22-03-2010, 20:02
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Servo control with a joystick

Thanks!

Just to verify:

Code:
    public double convert(double input) {
        //newValue = newMax + (newMax - newMin) * (oldValue- oldMax) / (oldMax - oldMin)
        input = 1 + (1 - 0) * (input- 1) / (1 - -1);
        return input;
    }
Reply With Quote