AP_InertialSensor_Stub: added num_samples_available method to fix HIL build

This commit is contained in:
rmackay9 2012-09-07 11:47:19 +09:00
parent d8142c2351
commit 8624b0138e
2 changed files with 5 additions and 0 deletions

View File

@ -55,3 +55,7 @@ void AP_InertialSensor_Stub::reset_sample_time() {
float AP_InertialSensor_Stub::get_gyro_drift_rate(void) { float AP_InertialSensor_Stub::get_gyro_drift_rate(void) {
return 0.0; return 0.0;
} }
uint16_t AP_InertialSensor_Stub::num_samples_available()
{
return 1;
}

View File

@ -34,6 +34,7 @@ public:
uint32_t sample_time(); uint32_t sample_time();
void reset_sample_time(); void reset_sample_time();
float get_gyro_drift_rate(); float get_gyro_drift_rate();
uint16_t num_samples_available();
}; };
#endif // __AP_INERTIAL_SENSOR_STUB_H__ #endif // __AP_INERTIAL_SENSOR_STUB_H__