GCS_MAVLink: replace call to EKF1

Return hagl from primary EKF
This commit is contained in:
priseborough 2016-11-27 15:18:49 +11:00 committed by Andrew Tridgell
parent f70cc3cf34
commit 809bfc1154
1 changed files with 2 additions and 1 deletions

View File

@ -1507,7 +1507,8 @@ void GCS_MAVLINK::send_opticalflow(AP_AHRS_NavEKF &ahrs, const OpticalFlow &optf
float hagl = 0; float hagl = 0;
if (ahrs.have_inertial_nav()) { if (ahrs.have_inertial_nav()) {
ahrs.get_NavEKF().getHAGL(hagl);
ahrs.get_hagl(hagl);
} }
// populate and send message // populate and send message