mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 08:23:33 +08:00
sensors (accel/gyro/mag) determine if external with device id
This commit is contained in:
@@ -170,7 +170,7 @@ void MagBiasEstimator::Run()
|
||||
updated = true;
|
||||
|
||||
// apply existing mag calibration
|
||||
_calibration[mag_index].set_device_id(sensor_mag.device_id, sensor_mag.is_external);
|
||||
_calibration[mag_index].set_device_id(sensor_mag.device_id);
|
||||
|
||||
const Vector3f mag_calibrated = _calibration[mag_index].Correct(Vector3f{sensor_mag.x, sensor_mag.y, sensor_mag.z});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user