Make AnalogInput PIDGet return an average voltage. artf2391 for Java.

Equivalent to Ia7f06ca2
Previously it returned a raw value instead of a voltage.

Change-Id: I6f1bcf8fdd7f98ae62ed991f29fec35f4ffb4098
This commit is contained in:
Joe Ross
2014-07-28 07:49:47 -07:00
parent 338120c3a5
commit c1d8e4ef4b

View File

@@ -460,12 +460,12 @@ public class AnalogInput extends SensorBase implements PIDSource,
}
/**
* Get the average value for use with PIDController
* Get the average voltage for use with PIDController
*
* @return the average value
* @return the average voltage
*/
public double pidGet() {
return getAverageValue();
return getAverageVoltage();
}
/**