mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 23:13:35 +08:00
sensors: mag reload calibration parameters when first seen (#12586)
* fixes UAVCAN MAG calibration application after reboot
This commit is contained in:
committed by
Daniel Agar
parent
29c50da1f6
commit
7789e2de88
@@ -764,6 +764,9 @@ void VotedSensorsUpdate::mag_poll(vehicle_magnetometer_s &magnetometer)
|
|||||||
int32_t priority = 0;
|
int32_t priority = 0;
|
||||||
orb_priority(_mag.subscription[uorb_index], &priority);
|
orb_priority(_mag.subscription[uorb_index], &priority);
|
||||||
_mag.priority[uorb_index] = (uint8_t)priority;
|
_mag.priority[uorb_index] = (uint8_t)priority;
|
||||||
|
|
||||||
|
/* force a scale and offset update the first time we get data */
|
||||||
|
parameters_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix::Vector3f vect(mag_report.x, mag_report.y, mag_report.z);
|
matrix::Vector3f vect(mag_report.x, mag_report.y, mag_report.z);
|
||||||
|
|||||||
Reference in New Issue
Block a user