mavlink: use high_latency_data_link_lost as backup to normal data_link

This commit is contained in:
Igor Mišić
2023-02-15 10:58:06 +01:00
committed by Beat Küng
parent 4f8de500af
commit 61ca65d863
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
uint64 timestamp # time since system start (microseconds)
uint64 last_successful_at_cmd # timestamp of the last successful AT command
uint64 last_at_ok_timestamp # timestamp of the last "OK" received after the "AT" command
uint16 tx_buf_write_index # current size of the tx buffer
uint16 rx_buf_read_index # the rx buffer is parsed up to that index
uint16 rx_buf_end_index # current size of the rx buffer

View File

@@ -2676,7 +2676,7 @@ void Commander::dataLinkCheck()
iridiumsbd_status_s iridium_status;
if (_iridiumsbd_status_sub.update(&iridium_status)) {
_high_latency_datalink_timestamp = iridium_status.last_successful_at_cmd;
_high_latency_datalink_timestamp = iridium_status.last_at_ok_timestamp;
if (_vehicle_status.high_latency_data_link_lost &&
(_high_latency_datalink_timestamp > _high_latency_datalink_lost) &&