mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00: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;
|
||||
orb_priority(_mag.subscription[uorb_index], &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);
|
||||
|
||||
Reference in New Issue
Block a user