mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
commander: workaround to get calibration status
If mavlink_log calls follow close after each other a later one will replace the previous one. Therefore do a quick usleep to get the calibration status out the door.
This commit is contained in:
@@ -476,6 +476,8 @@ calibrate_return calibrate_from_orientation(orb_advert_t *mavlink_log_pub,
|
|||||||
}
|
}
|
||||||
|
|
||||||
mavlink_and_console_log_info(mavlink_log_pub, CAL_QGC_ORIENTATION_DETECTED_MSG, detect_orientation_str(orient));
|
mavlink_and_console_log_info(mavlink_log_pub, CAL_QGC_ORIENTATION_DETECTED_MSG, detect_orientation_str(orient));
|
||||||
|
// TODO FIXME: sleep here, so that QGC receives this with higher chance.
|
||||||
|
usleep(1000);
|
||||||
orientation_failures = 0;
|
orientation_failures = 0;
|
||||||
|
|
||||||
// Call worker routine
|
// Call worker routine
|
||||||
|
|||||||
Reference in New Issue
Block a user