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:
Julian Oes
2016-03-22 19:58:44 +01:00
parent de0e467150
commit 13866400fa
@@ -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));
// TODO FIXME: sleep here, so that QGC receives this with higher chance.
usleep(1000);
orientation_failures = 0;
// Call worker routine