mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 10:23:33 +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:
@@ -224,8 +224,7 @@ void VehicleMagnetometer::Run()
|
||||
updated[uorb_index] = true;
|
||||
|
||||
if (_calibration[uorb_index].device_id() != report.device_id) {
|
||||
_calibration[uorb_index].set_external(report.is_external);
|
||||
_calibration[uorb_index].set_device_id(report.device_id);
|
||||
_calibration[uorb_index].set_device_id(report.device_id, report.is_external);
|
||||
_priority[uorb_index] = _calibration[uorb_index].priority();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user