|
|
|
@ -2074,12 +2074,9 @@ void GCS_MAVLINK::send_opticalflow()
@@ -2074,12 +2074,9 @@ void GCS_MAVLINK::send_opticalflow()
|
|
|
|
|
const Vector2f &flowRate = optflow->flowRate(); |
|
|
|
|
const Vector2f &bodyRate = optflow->bodyRate(); |
|
|
|
|
|
|
|
|
|
const AP_AHRS &ahrs = AP::ahrs(); |
|
|
|
|
float hagl = 0; |
|
|
|
|
if (ahrs.have_inertial_nav()) { |
|
|
|
|
if (!ahrs.get_hagl(hagl)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
float hagl; |
|
|
|
|
if (!AP::ahrs().get_hagl(hagl)) { |
|
|
|
|
hagl = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// populate and send message
|
|
|
|
|