mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
commander: fix tune_control timestamp on initial publication
This commit is contained in:
@@ -1790,7 +1790,7 @@ void Commander::run()
|
||||
_power_button_state_sub.copy(&button_state);
|
||||
|
||||
tune_control_s tune_control{};
|
||||
button_state.timestamp = hrt_absolute_time();
|
||||
tune_control.timestamp = hrt_absolute_time();
|
||||
tune_control_pub = orb_advertise(ORB_ID(tune_control), &tune_control);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user