reenable WV after FT alignment

This commit is contained in:
Thomas 2020-12-04 17:55:44 +01:00 committed by Silvan Fuhrer
parent a1b54eb655
commit 7e2da11d67
1 changed files with 3 additions and 0 deletions

View File

@ -999,6 +999,9 @@ Mission::set_mission_items()
new_work_item_type = WORK_ITEM_TYPE_DEFAULT;
/* re-enable weather vane again after alignment */
pos_sp_triplet->current.disable_weather_vane = false;
/* set position setpoint to target during the transition */
pos_sp_triplet->previous = pos_sp_triplet->current;
generate_waypoint_from_heading(&pos_sp_triplet->current, pos_sp_triplet->current.yaw);