mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal] Fix systemcore analog input scaling (#7691)
This commit is contained in:
@@ -172,7 +172,7 @@ double HAL_GetAnalogVoltage(HAL_AnalogInputHandle analogPortHandle,
|
||||
|
||||
uint16_t ret = 0;
|
||||
*status = port->GetAnalogInput(&ret);
|
||||
return ret / 1000.0;
|
||||
return ret / 4095.0 * 3.3;
|
||||
}
|
||||
|
||||
double HAL_GetAnalogValueToVolts(HAL_AnalogInputHandle analogPortHandle,
|
||||
|
||||
Reference in New Issue
Block a user