mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 00:33:34 +08:00
accel/gyro/mag calibration set default priority uninitialized
- this allows the default priority to be set differently for internal/external sensors - accel and gyro initialize default priority like mag in preparation for fully supporting external sensors - fixes #15652
This commit is contained in:
@@ -451,8 +451,7 @@ calibrate_return mag_calibrate_all(orb_advert_t *mavlink_log_pub, int32_t cal_ma
|
||||
uORB::SubscriptionData<sensor_mag_s> mag_sub{ORB_ID(sensor_mag), cur_mag};
|
||||
|
||||
if (mag_sub.advertised() && (mag_sub.get().device_id != 0) && (mag_sub.get().timestamp > 0)) {
|
||||
worker_data.calibration[cur_mag].set_device_id(mag_sub.get().device_id);
|
||||
worker_data.calibration[cur_mag].set_external(mag_sub.get().is_external);
|
||||
worker_data.calibration[cur_mag].set_device_id(mag_sub.get().device_id, mag_sub.get().is_external);
|
||||
}
|
||||
|
||||
// reset calibration index to match uORB numbering
|
||||
|
||||
Reference in New Issue
Block a user