mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
GCS_MAVLink: expose HUD throttle accessor
This commit is contained in:
parent
f4da0215d1
commit
94d8010a16
@ -636,6 +636,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:
|
||||
|
||||
static GCS *_singleton;
|
||||
|
Loading…
Reference in New Issue
Block a user