|
|
|
@ -112,19 +112,17 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
@@ -112,19 +112,17 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
|
|
|
|
|
SCHED_TASK(update_dynamic_notch, 50, 200), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
constexpr int8_t Plane::_failsafe_priorities[7]; |
|
|
|
|
|
|
|
|
|
void Plane::setup()
|
|
|
|
|
void Plane::get_scheduler_tasks(const AP_Scheduler::Task *&tasks, |
|
|
|
|
uint8_t &task_count, |
|
|
|
|
uint32_t &log_bit) |
|
|
|
|
{ |
|
|
|
|
// load the default values of variables listed in var_info[]
|
|
|
|
|
AP_Param::setup_sketch_defaults(); |
|
|
|
|
|
|
|
|
|
init_ardupilot(); |
|
|
|
|
|
|
|
|
|
// initialise the main loop scheduler
|
|
|
|
|
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks), MASK_LOG_PM); |
|
|
|
|
tasks = &scheduler_tasks[0]; |
|
|
|
|
task_count = ARRAY_SIZE(scheduler_tasks); |
|
|
|
|
log_bit = MASK_LOG_PM; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
constexpr int8_t Plane::_failsafe_priorities[7]; |
|
|
|
|
|
|
|
|
|
void Plane::loop() |
|
|
|
|
{ |
|
|
|
|
scheduler.loop(); |
|
|
|
|