AP_Rangefinder: use ratiometric analog input for analog sonar

This commit is contained in:
Andrew Tridgell 2013-05-13 15:13:43 +10:00
parent dfb98490f4
commit cec08be9cb
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ float AP_RangeFinder_analog::voltage(void)
_source->set_pin(_pin);
_source->set_stop_pin((uint8_t)_stop_pin);
_source->set_settle_time((uint16_t)_settle_time_ms);
return _source->voltage_average();
return _source->voltage_average_ratiometric();
}
/*