mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
Commander: always update parameters, not just if disarmed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -1644,12 +1644,9 @@ void Commander::run()
|
|||||||
parameter_update_s update;
|
parameter_update_s update;
|
||||||
_parameter_update_sub.copy(&update);
|
_parameter_update_sub.copy(&update);
|
||||||
|
|
||||||
/* update parameters */
|
updateParameters();
|
||||||
if (!_arm_state_machine.isArmed()) {
|
|
||||||
updateParameters();
|
|
||||||
|
|
||||||
_status_changed = true;
|
_status_changed = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update OA parameter */
|
/* Update OA parameter */
|
||||||
|
|||||||
Reference in New Issue
Block a user