From 2773fe6a543dbdbf6c8a5fe9eb0d750c9c779f92 Mon Sep 17 00:00:00 2001 From: mcsauder Date: Sat, 9 Mar 2019 12:57:56 -0700 Subject: [PATCH] Deprecate _hil_frames and _old_timestamp member vars and dead logic from MavlinkReceiver class. --- src/modules/mavlink/mavlink_receiver.cpp | 10 ---------- src/modules/mavlink/mavlink_receiver.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 1d95f3a8a3..ef54625ecc 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -2080,16 +2080,6 @@ MavlinkReceiver::handle_message_hil_sensor(mavlink_message_t *msg) orb_publish(ORB_ID(battery_status), _battery_pub, &hil_battery_status); } } - - /* increment counters */ - _hil_frames++; - - /* print HIL sensors rate */ - if ((timestamp - _old_timestamp) > 10000000) { - // printf("receiving HIL sensors at %d hz\n", _hil_frames / 10); - _old_timestamp = timestamp; - _hil_frames = 0; - } } void diff --git a/src/modules/mavlink/mavlink_receiver.h b/src/modules/mavlink/mavlink_receiver.h index ba212f1c23..caa294ea6e 100644 --- a/src/modules/mavlink/mavlink_receiver.h +++ b/src/modules/mavlink/mavlink_receiver.h @@ -261,11 +261,9 @@ private: int _control_mode_sub{orb_subscribe(ORB_ID(vehicle_control_mode))}; int _vehicle_attitude_sub{orb_subscribe(ORB_ID(vehicle_attitude))}; - int _hil_frames{0}; int _orb_class_instance{-1}; uint64_t _global_ref_timestamp{0}; - uint64_t _old_timestamp{0}; bool _hil_local_proj_inited{false};