From 012dd57246e19d0a43b60e482ec78367ab86422f Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 23 Aug 2018 14:18:03 +0900 Subject: [PATCH] Sub: rename gcs_check_input to gcs_update --- ArduSub/ArduSub.cpp | 2 +- ArduSub/GCS_Mavlink.cpp | 4 ++-- ArduSub/Sub.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduSub/ArduSub.cpp b/ArduSub/ArduSub.cpp index 431da77536..70dd47b845 100644 --- a/ArduSub/ArduSub.cpp +++ b/ArduSub/ArduSub.cpp @@ -38,7 +38,7 @@ const AP_Scheduler::Task Sub::scheduler_tasks[] = { 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), - SCHED_TASK(gcs_check_input, 400, 180), + SCHED_TASK(gcs_update, 400, 180), SCHED_TASK(gcs_send_heartbeat, 1, 110), SCHED_TASK(gcs_send_deferred, 50, 550), SCHED_TASK(gcs_data_stream_send, 50, 550), diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index c109b3708f..cc4f92d285 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -1225,7 +1225,7 @@ void Sub::mavlink_delay_cb() } if (tnow - last_50hz > 20) { last_50hz = tnow; - gcs_check_input(); + gcs_update(); gcs_data_stream_send(); gcs_send_deferred(); notify.update(); @@ -1249,7 +1249,7 @@ void Sub::gcs_data_stream_send() /* * look for incoming commands on the GCS links */ -void Sub::gcs_check_input() +void Sub::gcs_update() { gcs().update(); } diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 88b52e2887..71ff0bfebe 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -490,7 +490,7 @@ private: #endif void send_pid_tuning(mavlink_channel_t chan); void gcs_data_stream_send(void); - void gcs_check_input(void); + void gcs_update(void); void do_erase_logs(void); void Log_Write_Optflow(); void Log_Write_Control_Tuning();