package org.usfirst.frc.team1736.lib.HAL;

import org.usfirst.frc.team1736.lib.Calibration.Calibration;

public class JoyStickScaler {
	static double input ;
	static Calibration exponent1 = new Calibration("Joystick Exponential Scale", 2.0, 1.0, 10.0);
	static int exponent = Math.getExponent(exponent1.get());
	static double output;
	
	public static double joyscale(double input){
	
	
	
	if (input>=0) {
	    output = Math.pow(input, exponent);
	}
	else{
	    output = -Math.pow(-input, exponent);
	}
	return output;
	}
	
	
	
	
	
	
}
//-((-input)^(exponent))
@@ -258,88 +258,8 @@
 ;%0D%0A%09
-static int exponent = Math.getExponent(exponent1.get());%0D%0A%09static double output;
 %0D%0A%09%0D
@@ -306,16 +306,34 @@
 nput)%7B%0D%0A
+%09%09double output;%0D%0A
 %09%0D%0A%09%0D%0A%09%0D
@@ -381,32 +381,39 @@
 (input, exponent
+1.get()
 );%0D%0A%09%7D%0D%0A%09else%7B%0D%0A
@@ -452,16 +452,23 @@
 exponent
+1.get()
 );%0D%0A%09%7D%0D%0A

fix joystick scaling. now it feels much better.