mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_ADC_AnalogSource: avoid some float conversion warnings
This commit is contained in:
parent
198ada2b42
commit
f28946defb
@ -25,7 +25,7 @@ float AP_ADC_AnalogSource::voltage_average()
|
||||
float fullscale = _adc->Ch(_ch);
|
||||
// note that the Ch6 ADC on APM1 has a 3.3V range, and is against
|
||||
// an internal reference, not the 5V power supply
|
||||
return fullscale * 3.3 * 2.44140625e-4f;
|
||||
return fullscale * 3.3f * 2.44140625e-4f;
|
||||
}
|
||||
|
||||
void AP_ADC_AnalogSource::set_pin(uint8_t machtnichts) {
|
||||
|
Loading…
Reference in New Issue
Block a user