mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 03:20:34 +08:00
mavlink: update radio status timestamp atomically
- this is updated by the mavlink rx thread, but checked in the tx thread
This commit is contained in:
@@ -1506,7 +1506,7 @@ MavlinkReceiver::handle_message_radio_status(mavlink_message_t *msg)
|
||||
|
||||
radio_status_s status{};
|
||||
|
||||
status.timestamp = hrt_absolute_time();
|
||||
hrt_store_absolute_time(&status.timestamp);
|
||||
status.rssi = rstatus.rssi;
|
||||
status.remote_rssi = rstatus.remrssi;
|
||||
status.txbuf = rstatus.txbuf;
|
||||
|
||||
Reference in New Issue
Block a user