Skip to content

Commit

Permalink
use synchronise_stamp to create stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
victor authored and vooon committed Nov 15, 2023
1 parent d0e0ef6 commit 52a164e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mavros/src/plugins/sys_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,7 @@ class SystemStatusPlugin : public plugin::Plugin
process_event_normal(severity, px4_id, eventm.arguments);

auto evt_msg = mavros_msgs::msg::StatusEvent();
evt_msg.header.stamp.sec = event_time_boot_ms / 1000;
evt_msg.header.stamp.nanosec = (event_time_boot_ms % 1000) * 1000000;
evt_msg.header.stamp = uas->synchronise_stamp(event_time_boot_ms);
evt_msg.severity = severity;
evt_msg.px4_id = px4_id;
evt_msg.arguments = eventm.arguments;
Expand Down

0 comments on commit 52a164e

Please sign in to comment.