From b4e536b4242602b2aba6f2acf0a81092e190f4ce Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 21 Aug 2017 12:32:25 +1000 Subject: [PATCH] GCS_MAVLink: move gcs_out_of_time into GCS object --- libraries/GCS_MAVLink/GCS.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index 668d962520..9d117c862b 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -477,6 +477,13 @@ public: void update(); virtual void setup_uarts(AP_SerialManager &serial_manager); + bool out_of_time() const { + return _out_of_time; + } + void set_out_of_time(bool val) { + _out_of_time = val; + } + /* set a dataflash pointer for logging */ @@ -515,6 +522,9 @@ private: ObjectArray _statustext_queue{_status_capacity}; + // true if we are running short on time in our main loop + bool _out_of_time; + }; GCS &gcs();