sensors: mag reload calibration parameters when first seen (#12586)

* fixes UAVCAN MAG calibration application after reboot
This commit is contained in:
Burak Saruhan 2019-07-31 22:22:59 +03:00 committed by Daniel Agar
parent 29c50da1f6
commit 7789e2de88

View File

@ -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);