Browse Source

GCS_MAVLink: replace call to EKF1

Return hagl from primary EKF
mission-4.1.18
priseborough 8 years ago committed by Andrew Tridgell
parent
commit
809bfc1154
  1. 3
      libraries/GCS_MAVLink/GCS_Common.cpp

3
libraries/GCS_MAVLink/GCS_Common.cpp

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

Loading…
Cancel
Save