From 4e9a313eb4899d447a5dbf271f555a23609ef41a Mon Sep 17 00:00:00 2001 From: Jonas Vautherin Date: Wed, 25 Oct 2023 22:27:16 +0200 Subject: [PATCH] telemetry: remove gps_raw_timeout --- src/mavsdk/plugins/telemetry/telemetry_impl.cpp | 6 ------ src/mavsdk/plugins/telemetry/telemetry_impl.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/mavsdk/plugins/telemetry/telemetry_impl.cpp b/src/mavsdk/plugins/telemetry/telemetry_impl.cpp index 5828608234..b2fbf87e74 100644 --- a/src/mavsdk/plugins/telemetry/telemetry_impl.cpp +++ b/src/mavsdk/plugins/telemetry/telemetry_impl.cpp @@ -164,7 +164,6 @@ void TelemetryImpl::deinit() { _parent->remove_call_every(_calibration_cookie); _parent->unregister_statustext_handler(this); - _parent->unregister_timeout_handler(_gps_raw_timeout_cookie); _parent->unregister_timeout_handler(_unix_epoch_timeout_cookie); _parent->unregister_param_changed_handler(this); _parent->unregister_all_mavlink_message_handlers(this); @@ -183,9 +182,6 @@ void TelemetryImpl::deinit() void TelemetryImpl::enable() { - _parent->register_timeout_handler( - [this]() { receive_gps_raw_timeout(); }, 2.0, &_gps_raw_timeout_cookie); - _parent->register_timeout_handler( [this]() { receive_unix_epoch_timeout(); }, 2.0, &_unix_epoch_timeout_cookie); @@ -998,8 +994,6 @@ void TelemetryImpl::process_gps_raw_int(const mavlink_message_t& message) _parent->call_user_callback([callback, arg]() { callback(arg); }); } } - - _parent->refresh_timeout_handler(_gps_raw_timeout_cookie); } void TelemetryImpl::process_ground_truth(const mavlink_message_t& message) diff --git a/src/mavsdk/plugins/telemetry/telemetry_impl.h b/src/mavsdk/plugins/telemetry/telemetry_impl.h index 9efc2a241f..df23a7f875 100644 --- a/src/mavsdk/plugins/telemetry/telemetry_impl.h +++ b/src/mavsdk/plugins/telemetry/telemetry_impl.h @@ -383,7 +383,6 @@ class TelemetryImpl : public PluginImplBase { double _position_rate_hz{-1.0}; void* _rc_channels_timeout_cookie{nullptr}; - void* _gps_raw_timeout_cookie{nullptr}; void* _unix_epoch_timeout_cookie{nullptr}; // Battery info can be extracted from SYS_STATUS or from BATTERY_STATUS.