/** setup the sketch - called once on startup */ void Tracker::setup() { // load the default values of variables listed in var_info[] AP_Param::setup_sketch_defaults(); init_tracker(); // initialise the main loop scheduler scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks), (uint32_t)-1); }
/** setup the sketch - called once on startup */ void Tracker::setup() { // load the default values of variables listed in var_info[] AP_Param::setup_sketch_defaults(); // initialise notify notify.init(false); // antenna tracker does not use pre-arm checks or battery failsafe AP_Notify::flags.pre_arm_check = true; AP_Notify::flags.pre_arm_gps_check = true; AP_Notify::flags.failsafe_battery = false; init_tracker(); // initialise the main loop scheduler scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks)); }