From 3f497e98911acbf522c7056d35b4b17d11f3bf83 Mon Sep 17 00:00:00 2001 From: Clyde McQueen Date: Tue, 18 Jul 2023 13:15:19 -0700 Subject: [PATCH] Send rangefinder target to GCS --- ArduSub/GCS_Mavlink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index f4ed519b5b6751..ee35029d4cea06 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -144,6 +144,9 @@ bool GCS_MAVLINK_Sub::send_info() CHECK_PAYLOAD_SIZE(NAMED_VALUE_FLOAT); send_named_float("RollPitch", sub.roll_pitch_flag); + CHECK_PAYLOAD_SIZE(NAMED_VALUE_FLOAT); + send_named_float("RFTarget", sub.surface_tracking.get_target_rangefinder_cm() / 100.0f); + return true; }