GCS_MAVLink: Accommodate change to EKF2 interface

Return euler angles for primary instance
This commit is contained in:
Paul Riseborough 2015-11-07 22:55:08 +11:00 committed by Andrew Tridgell
parent 5b1d6f2aa2
commit dfdacf2ddc

View File

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