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:
Daniel Agar
2018-09-02 19:48:10 +02:00
committed by Lorenz Meier
parent 4630b60c41
commit 930ac8d4fe
4 changed files with 26 additions and 43 deletions
+3 -1
View File
@@ -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; }