update previous waypoint before transition command

This commit is contained in:
Andreas Antener 2016-08-11 18:37:48 +02:00
parent 5175d45e74
commit 2e44fe9edd

View File

@ -645,6 +645,7 @@ Mission::set_mission_items()
/* yaw is aligned now */
if (_work_item_type == WORK_ITEM_TYPE_ALIGN) {
new_work_item_type = WORK_ITEM_TYPE_DEFAULT;
set_previous_pos_setpoint();
}
}