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

AP_InertialSensor: return the example sample count in Oilpan

parent 9411b110
No related branches found
No related tags found
No related merge requests found
......@@ -142,8 +142,5 @@ float AP_InertialSensor_Oilpan::get_gyro_drift_rate(void)
// get number of samples read from the sensors
uint16_t AP_InertialSensor_Oilpan::num_samples_available()
{
if (_adc->num_samples_available(_sensors) >= _sample_threshold) {
return 1;
}
return 0;
return _adc->num_samples_available(_sensors) / _sample_threshold;
}
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