From 07938692d452003043cd70cdb6a7ee4b3c1c79dc Mon Sep 17 00:00:00 2001 From: daniele Date: Mon, 25 Nov 2019 23:02:44 +0100 Subject: [PATCH] fix for issue where flight_uuid in flight_information mavlink message wouldn't update at every disarm because the param update was not notified --- src/modules/commander/Commander.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/commander/Commander.cpp b/src/modules/commander/Commander.cpp index 811e24952b..78b7d08046 100644 --- a/src/modules/commander/Commander.cpp +++ b/src/modules/commander/Commander.cpp @@ -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(); } }