mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user