diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 6420284fb7..dcf06e7188 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -53,7 +53,6 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = { SCHED_TASK(gcs_data_stream_send, 50, 500), SCHED_TASK(update_events, 50, 150), SCHED_TASK_CLASS(AP_BattMonitor, &plane.battery, read, 10, 300), - SCHED_TASK(compass_accumulate, 50, 200), SCHED_TASK_CLASS(AP_Baro, &plane.barometer, accumulate, 50, 150), SCHED_TASK(update_notify, 50, 300), SCHED_TASK(read_rangefinder, 50, 100), @@ -192,16 +191,6 @@ void Plane::update_compass(void) } } -/* - if the compass is enabled then try to accumulate a reading - */ -void Plane::compass_accumulate(void) -{ - if (g.compass_enabled) { - compass.accumulate(); - } -} - /* do 10Hz logging */ diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index ee347d31f9..8bbdff3400 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -942,7 +942,6 @@ private: void update_compass(void); void update_alt(void); void afs_fs_check(void); - void compass_accumulate(void); void compass_cal_update(); void update_optical_flow(void); void one_second_loop(void);