From 7bcb01d28fd1de991befdaaf6c4a3b40ca19f218 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 1 Jul 2018 20:49:30 +1000 Subject: [PATCH] GCS_MAVLink: expose HUD throttle accessor --- libraries/GCS_MAVLink/GCS.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index 19a072ac97..3b9ea8acba 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -635,6 +635,9 @@ public: // install an alternative protocol handler bool install_alternative_protocol(mavlink_channel_t chan, GCS_MAVLINK::protocol_handler_fn_t handler); + + // get the VFR_HUD throttle + int16_t get_hud_throttle(void) const { return num_gcs()>0?chan(0).vfr_hud_throttle():0; } private: