mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Deprecate _hil_frames and _old_timestamp member vars and dead logic from MavlinkReceiver class.
This commit is contained in:
parent
8947cb5841
commit
2773fe6a54
@ -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
|
||||
|
||||
@ -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};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user