mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:41:35 +08:00
HIL driver: Fix boot order race
This commit is contained in:
@@ -346,10 +346,9 @@ HIL::task_main()
|
|||||||
/* advertise the mixed control outputs */
|
/* advertise the mixed control outputs */
|
||||||
actuator_outputs_s outputs;
|
actuator_outputs_s outputs;
|
||||||
memset(&outputs, 0, sizeof(outputs));
|
memset(&outputs, 0, sizeof(outputs));
|
||||||
/* advertise the mixed control outputs */
|
/* advertise the mixed control outputs, insist on the first group output */
|
||||||
int dummy;
|
_t_outputs = orb_advertise(ORB_ID(actuator_outputs),
|
||||||
_t_outputs = orb_advertise_multi(ORB_ID(actuator_outputs),
|
&outputs);
|
||||||
&outputs, &dummy, ORB_PRIO_LOW);
|
|
||||||
|
|
||||||
px4_pollfd_struct_t fds[2];
|
px4_pollfd_struct_t fds[2];
|
||||||
fds[0].fd = _t_actuators;
|
fds[0].fd = _t_actuators;
|
||||||
|
|||||||
Reference in New Issue
Block a user