|
|
|
@ -87,7 +87,9 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
@@ -87,7 +87,9 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
|
|
|
|
|
SCHED_TASK_CLASS(AP_InertialSensor, &rover.ins, periodic, 50, 50), |
|
|
|
|
SCHED_TASK_CLASS(AP_Scheduler, &rover.scheduler, update_logging, 0.1, 75), |
|
|
|
|
SCHED_TASK_CLASS(AP_Button, &rover.button, update, 5, 100), |
|
|
|
|
#if STATS_ENABLED == ENABLED |
|
|
|
|
SCHED_TASK(stats_update, 1, 100), |
|
|
|
|
#endif |
|
|
|
|
SCHED_TASK(crash_check, 10, 1000), |
|
|
|
|
SCHED_TASK(cruise_learn_update, 50, 50), |
|
|
|
|
#if ADVANCED_FAILSAFE == ENABLED |
|
|
|
@ -95,6 +97,7 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
@@ -95,6 +97,7 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
|
|
|
|
|
#endif |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#if STATS_ENABLED == ENABLED |
|
|
|
|
/*
|
|
|
|
|
update AP_Stats |
|
|
|
|
*/ |
|
|
|
@ -103,6 +106,7 @@ void Rover::stats_update(void)
@@ -103,6 +106,7 @@ void Rover::stats_update(void)
|
|
|
|
|
g2.stats.set_flying(motor_active()); |
|
|
|
|
g2.stats.update(); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
setup is called when the sketch starts |
|
|
|
|