Plane: remove update_events scheduler shim

This commit is contained in:
Peter Barker 2018-11-23 13:54:22 +11:00 committed by Andrew Tridgell
parent c40f4f1ba6
commit ba3a369651
3 changed files with 1 additions and 7 deletions

View File

@ -51,7 +51,7 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
SCHED_TASK(afs_fs_check, 10, 100),
SCHED_TASK_CLASS(GCS, (GCS*)&plane._gcs, update, 50, 500),
SCHED_TASK_CLASS(GCS, (GCS*)&plane._gcs, data_stream_send, 50, 500),
SCHED_TASK(update_events, 50, 150),
SCHED_TASK_CLASS(AP_ServoRelayEvents, &plane.ServoRelayEvents, update_events, 50, 150),
SCHED_TASK_CLASS(AP_BattMonitor, &plane.battery, read, 10, 300),
SCHED_TASK_CLASS(AP_Baro, &plane.barometer, accumulate, 50, 150),
SCHED_TASK(update_notify, 50, 300),

View File

@ -888,7 +888,6 @@ private:
void failsafe_short_off_event(mode_reason_t reason);
void failsafe_long_off_event(mode_reason_t reason);
void handle_battery_failsafe(const char* type_str, const int8_t action);
void update_events(void);
uint8_t max_fencepoints(void);
Vector2l get_fence_point_with_index(unsigned i);
void set_fence_point_with_index(const Vector2l &point, unsigned i);

View File

@ -174,8 +174,3 @@ void Plane::handle_battery_failsafe(const char *type_str, const int8_t action)
break;
}
}
void Plane::update_events(void)
{
ServoRelayEvents.update_events();
}