Commander: always update parameters, not just if disarmed

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2022-12-23 16:10:10 +01:00
parent e19c7ca18b
commit bc9abf8c36
1 changed files with 2 additions and 5 deletions

View File

@ -1644,12 +1644,9 @@ void Commander::run()
parameter_update_s update;
_parameter_update_sub.copy(&update);
/* update parameters */
if (!_arm_state_machine.isArmed()) {
updateParameters();
updateParameters();
_status_changed = true;
}
_status_changed = true;
}
/* Update OA parameter */