mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: fix tune_control timestamp on initial publication
This commit is contained in:
parent
e71faf38a0
commit
3925562ce6
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user