mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 13:33:33 +08:00
sensors (accel/gyro/mag) determine if external with device id
This commit is contained in:
@@ -432,7 +432,7 @@ void VehicleMagnetometer::Run()
|
||||
while (_sensor_sub[uorb_index].update(&report)) {
|
||||
|
||||
if (_calibration[uorb_index].device_id() != report.device_id) {
|
||||
_calibration[uorb_index].set_device_id(report.device_id, report.is_external);
|
||||
_calibration[uorb_index].set_device_id(report.device_id);
|
||||
_priority[uorb_index] = _calibration[uorb_index].priority();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user