|
|
|
@ -68,7 +68,9 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
@@ -68,7 +68,9 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
|
|
|
|
|
SCHED_TASK(one_second_loop, 1, 400), |
|
|
|
|
SCHED_TASK(check_long_failsafe, 3, 400), |
|
|
|
|
SCHED_TASK(rpm_update, 10, 100), |
|
|
|
|
#if AP_AIRSPEED_AUTOCAL_ENABLE |
|
|
|
|
SCHED_TASK(airspeed_ratio_update, 1, 100), |
|
|
|
|
#endif // AP_AIRSPEED_AUTOCAL_ENABLE
|
|
|
|
|
#if HAL_MOUNT_ENABLED |
|
|
|
|
SCHED_TASK_CLASS(AP_Mount, &plane.camera_mount, update, 50, 100), |
|
|
|
|
#endif // HAL_MOUNT_ENABLED
|
|
|
|
@ -318,6 +320,7 @@ void Plane::efi_update(void)
@@ -318,6 +320,7 @@ void Plane::efi_update(void)
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if AP_AIRSPEED_AUTOCAL_ENABLE |
|
|
|
|
/*
|
|
|
|
|
once a second update the airspeed calibration ratio |
|
|
|
|
*/ |
|
|
|
@ -346,7 +349,7 @@ void Plane::airspeed_ratio_update(void)
@@ -346,7 +349,7 @@ void Plane::airspeed_ratio_update(void)
|
|
|
|
|
const Vector3f &vg = gps.velocity(); |
|
|
|
|
airspeed.update_calibration(vg, aparm.airspeed_max); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif // AP_AIRSPEED_AUTOCAL_ENABLE
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
read the GPS and update position |
|
|
|
|