AP_ADC_AnalogSource: avoid some float conversion warnings

This commit is contained in:
Andrew Tridgell 2014-07-08 20:26:37 +10:00
parent 198ada2b42
commit f28946defb

View File

@ -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) {