AP_InertialSensor: return the example sample count in Oilpan

This commit is contained in:
Andrew Tridgell 2012-11-30 06:39:24 +11:00
parent 9411b11072
commit d58088c2b8
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}