[hal] Update analog scaling for updated image (#8052)

This commit is contained in:
Thad House
2025-07-04 11:51:28 -07:00
committed by GitHub
parent 0304f50141
commit f6558c4815

View File

@@ -169,7 +169,8 @@ double HAL_GetAnalogVoltage(HAL_AnalogInputHandle analogPortHandle,
uint16_t ret = 0;
*status = port->GetAnalogInput(&ret);
return ret / 4095.0 * 3.3;
// Returns millivolts
return ret / 1000.0;
}
double HAL_GetAnalogValueToVolts(HAL_AnalogInputHandle analogPortHandle,