mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Copter: implement user auxswitch functions
This commit is contained in:
committed by
Randy Mackay
parent
1377943eb3
commit
ea3de59107
@@ -42,3 +42,20 @@ void Copter::userhook_SuperSlowLoop()
|
||||
// put your 1Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_AUXSWITCH
|
||||
void Copter::userhook_auxSwitch1(uint8_t ch_flag)
|
||||
{
|
||||
// put your aux switch #1 handler here (CHx_OPT = 47)
|
||||
}
|
||||
|
||||
void Copter::userhook_auxSwitch2(uint8_t ch_flag)
|
||||
{
|
||||
// put your aux switch #2 handler here (CHx_OPT = 48)
|
||||
}
|
||||
|
||||
void Copter::userhook_auxSwitch3(uint8_t ch_flag)
|
||||
{
|
||||
// put your aux switch #3 handler here (CHx_OPT = 49)
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user