mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 05:21:35 +08:00
IO driver: move to topic groups
This commit is contained in:
@@ -1681,17 +1681,12 @@ PX4IO::io_publish_pwm_outputs()
|
|||||||
|
|
||||||
/* lazily advertise on first publication */
|
/* lazily advertise on first publication */
|
||||||
if (_to_outputs == 0) {
|
if (_to_outputs == 0) {
|
||||||
_to_outputs = orb_advertise((_primary_pwm_device ?
|
int instance;
|
||||||
ORB_ID_VEHICLE_CONTROLS :
|
_to_outputs = orb_advertise_multi(ORB_ID(actuator_outputs),
|
||||||
ORB_ID(actuator_outputs_1)),
|
&outputs, &instance, ORB_PRIO_MAX);
|
||||||
&outputs);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
orb_publish((_primary_pwm_device ?
|
orb_publish(ORB_ID(actuator_outputs), _to_outputs, &outputs);
|
||||||
ORB_ID_VEHICLE_CONTROLS :
|
|
||||||
ORB_ID(actuator_outputs_1)),
|
|
||||||
_to_outputs,
|
|
||||||
&outputs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user