GCS_MAVLink: move try_send_message handling of EKF_STATUS_REPORT up

This commit is contained in:
Peter Barker 2018-05-02 22:19:22 +10:00 committed by Francisco Ferreira
parent 4d944da530
commit 69db7b040a
1 changed files with 7 additions and 0 deletions

View File

@ -2935,6 +2935,13 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id)
send_battery2();
break;
case MSG_EKF_STATUS_REPORT:
#if AP_AHRS_NAVEKF_AVAILABLE
CHECK_PAYLOAD_SIZE(EKF_STATUS_REPORT);
AP::ahrs_navekf().send_ekf_status_report(chan);
#endif
break;
case MSG_EXTENDED_STATUS2:
CHECK_PAYLOAD_SIZE(MEMINFO);
send_meminfo();