GCS_MAVLink: expose HUD throttle accessor

This commit is contained in:
Andrew Tridgell 2018-07-01 20:49:30 +10:00
parent df07c40412
commit 7bcb01d28f
1 changed files with 3 additions and 0 deletions

View File

@ -635,6 +635,9 @@ public:
// install an alternative protocol handler // install an alternative protocol handler
bool install_alternative_protocol(mavlink_channel_t chan, GCS_MAVLINK::protocol_handler_fn_t 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: private: