mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 08:49:06 +08:00
Closed additional file descriptor
This commit is contained in:
parent
0a86fd0d9f
commit
d9b5efb263
@ -1071,6 +1071,12 @@ MulticopterPositionControl::task_main()
|
||||
_reset_pos_sp = true;
|
||||
reset_int_z = 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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user