mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-09 04:01:49 +08:00
mavlink: use high_latency_data_link_lost as backup to normal data_link
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user