Sub: Refactor userhooks

This commit is contained in:
jaxxzer 2016-03-16 18:18:46 -04:00 committed by Andrew Tridgell
parent 39fd3054c9
commit cd31451eb5
1 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
#include "Sub.h"
#ifdef USERHOOK_INIT
void Copter::userhook_init()
void Sub::userhook_init()
{
// put your initialisation code here
// this will be called once at start-up
@ -11,35 +11,35 @@ void Copter::userhook_init()
#endif
#ifdef USERHOOK_FASTLOOP
void Copter::userhook_FastLoop()
void Sub::userhook_FastLoop()
{
// put your 100Hz code here
}
#endif
#ifdef USERHOOK_50HZLOOP
void Copter::userhook_50Hz()
void Sub::userhook_50Hz()
{
// put your 50Hz code here
}
#endif
#ifdef USERHOOK_MEDIUMLOOP
void Copter::userhook_MediumLoop()
void Sub::userhook_MediumLoop()
{
// put your 10Hz code here
}
#endif
#ifdef USERHOOK_SLOWLOOP
void Copter::userhook_SlowLoop()
void Sub::userhook_SlowLoop()
{
// put your 3.3Hz code here
}
#endif
#ifdef USERHOOK_SUPERSLOWLOOP
void Copter::userhook_SuperSlowLoop()
void Sub::userhook_SuperSlowLoop()
{
// put your 1Hz code here
}