in mc auto: do not reset the position sp while near the waypoint, should make switching to manual pos control smoother

This commit is contained in:
Andreas Antener
2015-12-28 15:23:20 +01:00
committed by Lorenz Meier
parent 5a009ce4c8
commit 09b5bdb1ee
5 changed files with 14 additions and 3 deletions
+1
View File
@@ -222,6 +222,7 @@ MissionBlock::mission_item_to_position_setpoint(const struct mission_item_s *ite
_navigator->get_loiter_radius();
sp->loiter_direction = item->loiter_direction;
sp->pitch_min = item->pitch_min;
sp->acceptance_radius = item->acceptance_radius;
switch (item->nav_cmd) {
case NAV_CMD_DO_SET_SERVO: