mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
SITL: fixed control callback
This commit is contained in:
parent
092a51426f
commit
2cc9f03c93
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user