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:
daniele
2019-11-25 23:02:44 +01:00
committed by Beat Küng
parent a7fbaefd83
commit 07938692d4
+1 -2
View File
@@ -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();
}
}