mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-19 08:54:04 +08:00
Copter: rename .pde files to .cpp files
This commit is contained in:
committed by
Randy Mackay
parent
1520d8f734
commit
356ece3402
@@ -0,0 +1,44 @@
|
||||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifdef USERHOOK_INIT
|
||||
void userhook_init()
|
||||
{
|
||||
// put your initialisation code here
|
||||
// this will be called once at start-up
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_FASTLOOP
|
||||
void userhook_FastLoop()
|
||||
{
|
||||
// put your 100Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_50HZLOOP
|
||||
void userhook_50Hz()
|
||||
{
|
||||
// put your 50Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_MEDIUMLOOP
|
||||
void userhook_MediumLoop()
|
||||
{
|
||||
// put your 10Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_SLOWLOOP
|
||||
void userhook_SlowLoop()
|
||||
{
|
||||
// put your 3.3Hz code here
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_SUPERSLOWLOOP
|
||||
void userhook_SuperSlowLoop()
|
||||
{
|
||||
// put your 1Hz code here
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user