mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 06:10:45 +08:00
commander: fix tune_control timestamp on initial publication
This commit is contained in:
1 parent
e71faf38a0
commit
3925562ce6
1 file changed
+1
-1
@@ -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