mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 06:41:37 +08:00
Closed additional file descriptor
This commit is contained in:
@@ -1071,6 +1071,12 @@ MulticopterPositionControl::task_main()
|
|||||||
_reset_pos_sp = true;
|
_reset_pos_sp = true;
|
||||||
reset_int_z = true;
|
reset_int_z = true;
|
||||||
reset_int_xy = true;
|
reset_int_xy = true;
|
||||||
|
|
||||||
|
/* Close att_sp pub to allow offboard mode or att controller to advertise */
|
||||||
|
if (_att_sp_pub > 0) {
|
||||||
|
close(_att_sp_pub);
|
||||||
|
_att_sp_pub = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset altitude controller integral (hovering throttle) to manual throttle after manual throttle control */
|
/* reset altitude controller integral (hovering throttle) to manual throttle after manual throttle control */
|
||||||
|
|||||||
Reference in New Issue
Block a user