Copter: implement user auxswitch functions

This commit is contained in:
SergeyBokhantsev
2018-07-26 20:27:49 +09:00
committed by Randy Mackay
parent 1377943eb3
commit ea3de59107
5 changed files with 38 additions and 0 deletions
+17
View File
@@ -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