Skip to content

Commit

Permalink
telemetry: remove gps_raw_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Oct 25, 2023
1 parent f337233 commit 4e9a313
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/mavsdk/plugins/telemetry/telemetry_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/mavsdk/plugins/telemetry/telemetry_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4e9a313

Please sign in to comment.