mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 10:13:34 +08:00
HIL: only listen to first 8 actuator outputs
This commit is contained in:
@@ -499,8 +499,8 @@ l_actuator_outputs(const struct listener *l)
|
|||||||
act_outputs.output[6],
|
act_outputs.output[6],
|
||||||
act_outputs.output[7]);
|
act_outputs.output[7]);
|
||||||
|
|
||||||
/* only send in HIL mode */
|
/* only send in HIL mode and only send first group for HIL */
|
||||||
if (mavlink_hil_enabled && armed.armed) {
|
if (mavlink_hil_enabled && armed.armed && ids[l->arg] == ORB_ID(actuator_outputs_0)) {
|
||||||
|
|
||||||
/* translate the current syste state to mavlink state and mode */
|
/* translate the current syste state to mavlink state and mode */
|
||||||
uint8_t mavlink_state = 0;
|
uint8_t mavlink_state = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user