|
|
|
@ -35,7 +35,6 @@ const AP_Scheduler::Task Sub::scheduler_tasks[] = {
@@ -35,7 +35,6 @@ const AP_Scheduler::Task Sub::scheduler_tasks[] = {
|
|
|
|
|
SCHED_TASK(update_altitude, 10, 100), |
|
|
|
|
SCHED_TASK(three_hz_loop, 3, 75), |
|
|
|
|
SCHED_TASK(update_turn_counter, 10, 50), |
|
|
|
|
SCHED_TASK(compass_accumulate, 100, 100), |
|
|
|
|
SCHED_TASK_CLASS(AP_Baro, &sub.barometer, accumulate, 50, 90), |
|
|
|
|
SCHED_TASK_CLASS(AP_Notify, &sub.notify, update, 50, 90), |
|
|
|
|
SCHED_TASK(one_hz_loop, 1, 100), |
|
|
|
@ -289,6 +288,9 @@ void Sub::one_hz_loop()
@@ -289,6 +288,9 @@ void Sub::one_hz_loop()
|
|
|
|
|
|
|
|
|
|
// log terrain data
|
|
|
|
|
terrain_logging(); |
|
|
|
|
|
|
|
|
|
// init compass location for declination
|
|
|
|
|
init_compass_location(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// called at 50hz
|
|
|
|
|