Skip to content
Snippets Groups Projects
Commit cec08be9 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AP_Rangefinder: use ratiometric analog input for analog sonar

parent dfb98490
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment