mirror of https://github.com/ArduPilot/ardupilot
AP_InertialSensor: return the example sample count in Oilpan
This commit is contained in:
parent
9411b11072
commit
d58088c2b8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue