mirror of https://github.com/ArduPilot/ardupilot
AP_InertialSensor_Stub: added num_samples_available method to fix HIL build
This commit is contained in:
parent
d8142c2351
commit
8624b0138e
|
@ -55,3 +55,7 @@ void AP_InertialSensor_Stub::reset_sample_time() {
|
|||
float AP_InertialSensor_Stub::get_gyro_drift_rate(void) {
|
||||
return 0.0;
|
||||
}
|
||||
uint16_t AP_InertialSensor_Stub::num_samples_available()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ public:
|
|||
uint32_t sample_time();
|
||||
void reset_sample_time();
|
||||
float get_gyro_drift_rate();
|
||||
uint16_t num_samples_available();
|
||||
};
|
||||
|
||||
#endif // __AP_INERTIAL_SENSOR_STUB_H__
|
||||
|
|
Loading…
Reference in New Issue