AP_InertialSensor: statically register with AP_AccelCal
This commit is contained in:
parent
49ad2d26c6
commit
4c2e6af6ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user