mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 06:33:34 +08:00
mavlink: telemetry status only log simple HEARTBEAT validity
* delete telemetry_heartbeat msg * delete unused _telemetry_status_mutex
This commit is contained in:
@@ -258,7 +258,7 @@ public:
|
||||
|
||||
bool get_forwarding_on() { return _forwarding_on; }
|
||||
|
||||
bool is_connected();
|
||||
bool is_connected() { return _tstatus.heartbeat_type_gcs; }
|
||||
|
||||
#if defined(MAVLINK_UDP)
|
||||
static Mavlink *get_instance_for_network_port(unsigned long port);
|
||||
@@ -430,9 +430,7 @@ public:
|
||||
/**
|
||||
* Get the receive status of this MAVLink link
|
||||
*/
|
||||
telemetry_status_s &get_telemetry_status() { return _tstatus; }
|
||||
void lock_telemetry_status() { pthread_mutex_lock(&_telemetry_status_mutex); }
|
||||
void unlock_telemetry_status() { pthread_mutex_unlock(&_telemetry_status_mutex); }
|
||||
telemetry_status_s &telemetry_status() { return _tstatus; }
|
||||
void telemetry_status_updated() { _tstatus_updated = true; }
|
||||
|
||||
void set_telemetry_status_type(uint8_t type) { _tstatus.type = type; }
|
||||
@@ -652,7 +650,6 @@ private:
|
||||
|
||||
pthread_mutex_t _message_buffer_mutex {};
|
||||
pthread_mutex_t _send_mutex {};
|
||||
pthread_mutex_t _telemetry_status_mutex {};
|
||||
|
||||
DEFINE_PARAMETERS(
|
||||
(ParamInt<px4::params::MAV_SYS_ID>) _param_mav_sys_id,
|
||||
|
||||
Reference in New Issue
Block a user