mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 01:11:35 +08:00
Mavlink set telemetry_status type properly for Sik radios
- remove radio_status type since there's no type support in mavlink
This commit is contained in:
committed by
Lorenz Meier
parent
4630b60c41
commit
930ac8d4fe
@@ -237,7 +237,7 @@ public:
|
||||
|
||||
bool get_forwarding_on() { return _forwarding_on; }
|
||||
|
||||
bool is_connected() { return ((_tstatus.heartbeat_time > 0) && (hrt_absolute_time() - _tstatus.heartbeat_time < 3_s)); }
|
||||
bool is_connected() { return (hrt_elapsed_time(&_tstatus.heartbeat_time) < 3_s); }
|
||||
|
||||
bool broadcast_enabled() { return _param_broadcast_mode.get() == BROADCAST_MODE_ON; }
|
||||
|
||||
@@ -423,6 +423,8 @@ public:
|
||||
*/
|
||||
telemetry_status_s &get_telemetry_status() { return _tstatus; }
|
||||
|
||||
void set_telemetry_status_type(uint8_t type) { _tstatus.type = type; }
|
||||
|
||||
void update_radio_status(const radio_status_s &radio_status);
|
||||
|
||||
ringbuffer::RingBuffer *get_logbuffer() { return &_logbuffer; }
|
||||
|
||||
Reference in New Issue
Block a user