mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Merge pull request #3202 from PX4/pwm_out_fix
SITL: fixed control callback
This commit is contained in:
@@ -548,7 +548,7 @@ PWMSim::control_callback(uintptr_t handle,
|
|||||||
const actuator_controls_s *controls = (actuator_controls_s *)handle;
|
const actuator_controls_s *controls = (actuator_controls_s *)handle;
|
||||||
|
|
||||||
if (_armed) {
|
if (_armed) {
|
||||||
input = controls->control[control_index];
|
input = controls[control_group].control[control_index];
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* clamp actuator to zero if not armed */
|
/* clamp actuator to zero if not armed */
|
||||||
|
|||||||
Reference in New Issue
Block a user