Browse Source

RC_Channel: expose do_aux_function for button to call

zr-v5.1
Peter Barker 4 years ago committed by Andrew Tridgell
parent
commit
0f597e0919
  1. 3
      libraries/RC_Channel/RC_Channel.h

3
libraries/RC_Channel/RC_Channel.h

@ -232,10 +232,11 @@ public: @@ -232,10 +232,11 @@ public:
bool read_3pos_switch(AuxSwitchPos &ret) const WARN_IF_UNUSED;
AuxSwitchPos get_aux_switch_pos() const;
virtual void do_aux_function(aux_func_t ch_option, AuxSwitchPos);
protected:
virtual void init_aux_function(aux_func_t ch_option, AuxSwitchPos);
virtual void do_aux_function(aux_func_t ch_option, AuxSwitchPos);
virtual void do_aux_function_armdisarm(const AuxSwitchPos ch_flag);
void do_aux_function_avoid_adsb(const AuxSwitchPos ch_flag);

Loading…
Cancel
Save