We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7466adf commit 5d245bfCopy full SHA for 5d245bf
libraries/GCS_MAVLink/GCS_Common.cpp
@@ -2914,6 +2914,7 @@ void GCS_MAVLINK::send_opticalflow()
2914
// get rates from sensor
2915
const Vector2f &flowRate = optflow->flowRate();
2916
const Vector2f &bodyRate = optflow->bodyRate();
2917
+ const float groundDistance = optflow->groundDistance();
2918
2919
float hagl = 0;
2920
#if AP_AHRS_ENABLED
@@ -2932,7 +2933,7 @@ void GCS_MAVLINK::send_opticalflow()
2932
2933
flowRate.x - bodyRate.x,
2934
flowRate.y - bodyRate.y,
2935
optflow->quality(),
- hagl, // ground distance (in meters) set to zero
2936
+ groundDistance, // ground distance (in meters) set to zero
2937
flowRate.x,
2938
flowRate.y);
2939
}
0 commit comments