mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Copter: fix userhook aux switches
Functions userhook_auxSwitch1, userhook_auxSwitch2, and userhook_auxSwitch3 had the wrong argument type resulting in a compilation error.
This commit is contained in:
committed by
Randy Mackay
parent
a04bbad45e
commit
063e24c723
@@ -44,17 +44,17 @@ void Copter::userhook_SuperSlowLoop()
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_AUXSWITCH
|
||||
void Copter::userhook_auxSwitch1(uint8_t ch_flag)
|
||||
void Copter::userhook_auxSwitch1(const RC_Channel::AuxSwitchPos ch_flag)
|
||||
{
|
||||
// put your aux switch #1 handler here (CHx_OPT = 47)
|
||||
}
|
||||
|
||||
void Copter::userhook_auxSwitch2(uint8_t ch_flag)
|
||||
void Copter::userhook_auxSwitch2(const RC_Channel::AuxSwitchPos ch_flag)
|
||||
{
|
||||
// put your aux switch #2 handler here (CHx_OPT = 48)
|
||||
}
|
||||
|
||||
void Copter::userhook_auxSwitch3(uint8_t ch_flag)
|
||||
void Copter::userhook_auxSwitch3(const RC_Channel::AuxSwitchPos ch_flag)
|
||||
{
|
||||
// put your aux switch #3 handler here (CHx_OPT = 49)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user