mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
AnalogInput::PIDGet returns an average voltage[artf2391]
Previously it returned a raw value instead of a voltage. Change-Id: Ia7f06ca24a6c79468c7be89a07c615d7015ffef9
This commit is contained in:
@@ -398,7 +398,7 @@ float AnalogInput::GetSampleRate()
|
||||
double AnalogInput::PIDGet()
|
||||
{
|
||||
if (StatusIsFatal()) return 0.0;
|
||||
return GetAverageValue();
|
||||
return GetAverageVoltage();
|
||||
}
|
||||
|
||||
void AnalogInput::UpdateTable() {
|
||||
|
||||
Reference in New Issue
Block a user