From 0af5a7787a9ae9c1bd04f6905bf4c22e656f0ec3 Mon Sep 17 00:00:00 2001 From: giacomo892 Date: Thu, 27 May 2021 17:48:04 +0200 Subject: [PATCH] AP_VideoTX: Add configuration_finished functions --- libraries/AP_VideoTX/AP_VideoTX.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/AP_VideoTX/AP_VideoTX.h b/libraries/AP_VideoTX/AP_VideoTX.h index dc5c9ad006..5ba45d008c 100644 --- a/libraries/AP_VideoTX/AP_VideoTX.h +++ b/libraries/AP_VideoTX/AP_VideoTX.h @@ -112,6 +112,9 @@ public: // display the current VTX settings in the GCS void announce_vtx_settings() const; + void set_configuration_finished(bool configuration_finished) { _configuration_finished = configuration_finished; } + bool is_configuration_finished() { return _configuration_finished; } + static AP_VideoTX *singleton; private: @@ -142,8 +145,10 @@ private: bool _initialized; // when defaults have been configured bool _defaults_set; + // true when configuration have been applied succesfully to the VTX + bool _configuration_finished; }; namespace AP { AP_VideoTX& vtx(); -}; \ No newline at end of file +};