GCS_MAVLink: accomodate change in EKF2 interface

This commit is contained in:
Paul Riseborough 2015-11-06 22:55:13 +11:00 committed by Andrew Tridgell
parent 6c2dc3ccf8
commit 243888e923
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void GCS_MAVLINK::send_ahrs2(AP_AHRS &ahrs)
loc.lng);
}
AP_AHRS_NavEKF &_ahrs = reinterpret_cast<AP_AHRS_NavEKF&>(ahrs);
if (_ahrs.get_NavEKF2().enabled()) {
if (_ahrs.get_NavEKF2().activeCores() > 0) {
_ahrs.get_NavEKF2().getLLH(loc);
_ahrs.get_NavEKF2().getEulerAngles(euler);
mavlink_msg_ahrs3_send(chan,