mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 14:01:36 +08:00
px4io: unadvertise topics
This commit is contained in:
@@ -1228,6 +1228,27 @@ out:
|
|||||||
unregister_driver(PWM_OUTPUT0_DEVICE_PATH);
|
unregister_driver(PWM_OUTPUT0_DEVICE_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_to_input_rc) {
|
||||||
|
orb_unadvertise(_to_input_rc);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_to_outputs) {
|
||||||
|
orb_unadvertise(_to_outputs);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_to_servorail) {
|
||||||
|
orb_unadvertise(_to_servorail);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_to_safety) {
|
||||||
|
orb_unadvertise(_to_safety);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_to_mixer_status) {
|
||||||
|
orb_unadvertise(_to_mixer_status);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* tell the dtor that we are exiting */
|
/* tell the dtor that we are exiting */
|
||||||
_task = -1;
|
_task = -1;
|
||||||
_exit(0);
|
_exit(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user