32 #if AP_MODULE_SUPPORTED 36 #ifndef AP_MODULE_DEFAULT_DIRECTORY 37 #define AP_MODULE_DEFAULT_DIRECTORY "/usr/lib/ardupilot/modules" 44 static void init(
const char *module_path);
47 static void call_hook_setup_start(
void);
50 static void call_hook_setup_complete(
void);
56 static void call_hook_gyro_sample(uint8_t instance,
float dt,
const Vector3f &gyro);
59 static void call_hook_accel_sample(uint8_t instance,
float dt,
const Vector3f &accel,
bool fsync_set);
75 struct hook_list *next;
80 static struct hook_list *hooks[NUM_HOOKS];
85 static const char *hook_names[NUM_HOOKS];
88 static void module_scan(
const char *path);
91 #endif // AP_MODULE_SUPPORTED
void init()
Generic board initialization function.