AP_DDS: pre-arm check service
[ardupilot.git] / ArduCopter / UserCode.cpp
blob1fc9824fdc78ffc1ffd0e258c692b920021c359e
1 #include "Copter.h"
3 #ifdef USERHOOK_INIT
4 void Copter::userhook_init()
6 // put your initialisation code here
7 // this will be called once at start-up
9 #endif
11 #ifdef USERHOOK_FASTLOOP
12 void Copter::userhook_FastLoop()
14 // put your 100Hz code here
16 #endif
18 #ifdef USERHOOK_50HZLOOP
19 void Copter::userhook_50Hz()
21 // put your 50Hz code here
23 #endif
25 #ifdef USERHOOK_MEDIUMLOOP
26 void Copter::userhook_MediumLoop()
28 // put your 10Hz code here
30 #endif
32 #ifdef USERHOOK_SLOWLOOP
33 void Copter::userhook_SlowLoop()
35 // put your 3.3Hz code here
37 #endif
39 #ifdef USERHOOK_SUPERSLOWLOOP
40 void Copter::userhook_SuperSlowLoop()
42 // put your 1Hz code here
44 #endif
46 #ifdef USERHOOK_AUXSWITCH
47 void Copter::userhook_auxSwitch1(const RC_Channel::AuxSwitchPos ch_flag)
49 // put your aux switch #1 handler here (CHx_OPT = 47)
52 void Copter::userhook_auxSwitch2(const RC_Channel::AuxSwitchPos ch_flag)
54 // put your aux switch #2 handler here (CHx_OPT = 48)
57 void Copter::userhook_auxSwitch3(const RC_Channel::AuxSwitchPos ch_flag)
59 // put your aux switch #3 handler here (CHx_OPT = 49)
61 #endif