AP_InertialSensor: statically register with AP_AccelCal

This commit is contained in:
Jonathan Challinger 2016-01-04 14:42:22 -08:00 committed by Randy Mackay
parent 49ad2d26c6
commit 4c2e6af6ee

View File

@ -368,6 +368,8 @@ AP_InertialSensor::AP_InertialSensor() :
}
memset(_delta_velocity_valid,0,sizeof(_delta_velocity_valid));
memset(_delta_angle_valid,0,sizeof(_delta_angle_valid));
AP_AccelCal::register_client(this);
}
/*
@ -1279,8 +1281,6 @@ void AP_InertialSensor::acal_init()
if (_accel_calibrator == NULL) {
_accel_calibrator = new AccelCalibrator[INS_MAX_INSTANCES];
}
_acal->register_client(this);
}
// update accel calibrator