Browse Source

control_allocator: set unused actuators to trim instead of min

release/1.12
Beat Küng 5 years ago committed by Daniel Agar
parent
commit
212ec821b1
  1. 4
      src/modules/control_allocator/ControlAllocation/ControlAllocation.cpp

4
src/modules/control_allocator/ControlAllocation/ControlAllocation.cpp

@ -52,9 +52,9 @@ ControlAllocation::setEffectivenessMatrix( @@ -52,9 +52,9 @@ ControlAllocation::setEffectivenessMatrix(
_control_trim = _effectiveness * _actuator_trim;
_num_actuators = num_actuators;
// make sure unused actuators are initialized to min
// make sure unused actuators are initialized to trim
for (int i = num_actuators; i < NUM_ACTUATORS; ++i) {
_actuator_sp(i) = _actuator_min(i);
_actuator_sp(i) = _actuator_trim(i);
}
}

Loading…
Cancel
Save