ardupilot/ArduCopter/UserCode.cpp

45 lines
683 B
C++
Raw Normal View History

#include "Copter.h"
#ifdef USERHOOK_INIT
void Copter::userhook_init()
2011-10-15 19:29:33 -03:00
{
2012-08-16 21:50:03 -03:00
// put your initialisation code here
// this will be called once at start-up
}
#endif
2011-10-15 19:29:33 -03:00
#ifdef USERHOOK_FASTLOOP
void Copter::userhook_FastLoop()
{
// put your 100Hz code here
2011-10-15 19:29:33 -03:00
}
#endif
2011-10-15 19:29:33 -03:00
#ifdef USERHOOK_50HZLOOP
void Copter::userhook_50Hz()
2011-10-15 19:29:33 -03:00
{
2012-08-16 21:50:03 -03:00
// put your 50Hz code here
}
#endif
2011-10-15 19:29:33 -03:00
#ifdef USERHOOK_MEDIUMLOOP
void Copter::userhook_MediumLoop()
{
// put your 10Hz code here
}
#endif
2011-10-15 19:29:33 -03:00
#ifdef USERHOOK_SLOWLOOP
void Copter::userhook_SlowLoop()
{
// put your 3.3Hz code here
}
#endif
#ifdef USERHOOK_SUPERSLOWLOOP
void Copter::userhook_SuperSlowLoop()
{
// put your 1Hz code here
2011-10-15 19:29:33 -03:00
}
#endif