mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 04:30:36 +08:00
fix for issue where flight_uuid in flight_information mavlink message wouldn't update at every disarm because the param update was not notified
This commit is contained in:
@@ -2338,8 +2338,7 @@ Commander::run()
|
||||
|
||||
if (!armed.armed) { // increase the flight uuid upon disarming
|
||||
++flight_uuid;
|
||||
// no need for param notification: the only user is mavlink which reads the param upon request
|
||||
param_set_no_notification(_param_flight_uuid, &flight_uuid);
|
||||
param_set(_param_flight_uuid, &flight_uuid);
|
||||
last_disarmed_timestamp = hrt_absolute_time();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user