mirror of https://github.com/ArduPilot/ardupilot
Blimp: use AUX_FUNC instead of typedef aux_func_t
This commit is contained in:
parent
6f9400a353
commit
482c8d7f0b
|
@ -58,7 +58,7 @@ RC_Channel * RC_Channels_Blimp::get_arming_channel(void) const
|
|||
}
|
||||
|
||||
// init_aux_switch_function - initialize aux functions
|
||||
void RC_Channel_Blimp::init_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag)
|
||||
void RC_Channel_Blimp::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch_flag)
|
||||
{
|
||||
// init channel options
|
||||
switch (ch_option) {
|
||||
|
@ -99,7 +99,7 @@ void RC_Channel_Blimp::do_aux_function_change_mode(const Mode::Number mode,
|
|||
}
|
||||
|
||||
// do_aux_function - implement the function invoked by auxiliary switches
|
||||
bool RC_Channel_Blimp::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag)
|
||||
bool RC_Channel_Blimp::do_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch_flag)
|
||||
{
|
||||
switch (ch_option) {
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
void init_aux_function(aux_func_t ch_option, AuxSwitchPos) override;
|
||||
bool do_aux_function(aux_func_t ch_option, AuxSwitchPos) override;
|
||||
void init_aux_function(AUX_FUNC ch_option, AuxSwitchPos) override;
|
||||
bool do_aux_function(AUX_FUNC ch_option, AuxSwitchPos) override;
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Reference in New Issue