diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.cpp b/libraries/AP_InertialSensor/AP_InertialSensor.cpp index f2f747c349..7e8b2be0d7 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor.cpp @@ -285,10 +285,6 @@ AP_InertialSensor::AP_InertialSensor() : _hil_mode(false), _calibrating(false), _log_raw_data(false), -#if INS_VIBRATION_CHECK - _accel_vibe_floor_filter(AP_INERTIAL_SENSOR_ACCEL_VIBE_FLOOR_FILT_HZ), - _accel_vibe_filter(AP_INERTIAL_SENSOR_ACCEL_VIBE_FILT_HZ), -#endif _dataflash(NULL) { AP_Param::setup_object_defaults(this, var_info); @@ -304,6 +300,12 @@ AP_InertialSensor::AP_InertialSensor() : _accel_max_abs_offsets[i] = 3.5f; } +#if INS_VIBRATION_CHECK + for (uint8_t i=0; i