mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Sub: New vehicle type, derived from ArduCopter.
This commit is contained in:
committed by
Andrew Tridgell
parent
1217256898
commit
3da7c95e9b
@@ -0,0 +1,46 @@
|
||||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#include "Copter.h"
|
||||
|
||||
#ifdef USERHOOK_INIT
|
||||
void Copter::userhook_init()
|
||||
{
|
||||
// put your initialisation code here
|
||||
// this will be called once at start-up
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_FASTLOOP
|
||||
void Copter::userhook_FastLoop()
|
||||
{
|
||||
// put your 100Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_50HZLOOP
|
||||
void Copter::userhook_50Hz()
|
||||
{
|
||||
// put your 50Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_MEDIUMLOOP
|
||||
void Copter::userhook_MediumLoop()
|
||||
{
|
||||
// put your 10Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#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
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user