Browse Source

fix for issue where flight_uuid in flight_information mavlink message wouldn't update at every disarm because the param update was not notified

sbg
daniele 5 years ago committed by Beat Küng
parent
commit
07938692d4
  1. 3
      src/modules/commander/Commander.cpp

3
src/modules/commander/Commander.cpp

@ -2338,8 +2338,7 @@ Commander::run() @@ -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();
}
}

Loading…
Cancel
Save