mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: replace call to EKF1
Return hagl from primary EKF
This commit is contained in:
parent
f70cc3cf34
commit
809bfc1154
|
@ -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…
Reference in New Issue