Merge pull request #3202 from PX4/pwm_out_fix

SITL: fixed control callback
This commit is contained in:
Roman Bapst 2015-11-17 21:38:22 +01:00
commit 9e2fec237f
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ PWMSim::control_callback(uintptr_t handle,
const actuator_controls_s *controls = (actuator_controls_s *)handle;
if (_armed) {
input = controls->control[control_index];
input = controls[control_group].control[control_index];
} else {
/* clamp actuator to zero if not armed */