ArduPlane: use AUX_FUNC instead of typedef aux_func_t

This commit is contained in:
Peter Barker 2024-02-14 13:36:11 +11:00 committed by Peter Barker
parent d4708e2d52
commit 6f9400a353
2 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@ void RC_Channel_Plane::do_aux_function_flare(AuxSwitchPos ch_flag)
} }
void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option, void RC_Channel_Plane::init_aux_function(const RC_Channel::AUX_FUNC ch_option,
const RC_Channel::AuxSwitchPos ch_flag) const RC_Channel::AuxSwitchPos ch_flag)
{ {
switch(ch_option) { switch(ch_option) {
@ -212,7 +212,7 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
} }
// do_aux_function - implement the function invoked by auxiliary switches // do_aux_function - implement the function invoked by auxiliary switches
bool RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag) bool RC_Channel_Plane::do_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch_flag)
{ {
switch(ch_option) { switch(ch_option) {
case AUX_FUNC::INVERTED: case AUX_FUNC::INVERTED:

View File

@ -9,9 +9,9 @@ public:
protected: protected:
void init_aux_function(aux_func_t ch_option, void init_aux_function(AUX_FUNC ch_option,
AuxSwitchPos ch_flag) override; AuxSwitchPos ch_flag) override;
bool do_aux_function(aux_func_t ch_option, AuxSwitchPos) override; bool do_aux_function(AUX_FUNC ch_option, AuxSwitchPos) override;
// called when the mode switch changes position: // called when the mode switch changes position:
void mode_switch_changed(modeswitch_pos_t new_pos) override; void mode_switch_changed(modeswitch_pos_t new_pos) override;