navigator: when setting pos_sp_triplet yaw, also set the yaw valid flag to true

This commit is contained in:
dusan19 2019-10-08 02:53:40 +02:00 committed by Daniel Agar
parent 741f6787a7
commit 8c4d32ff4b

View File

@ -1263,6 +1263,7 @@ Mission::heading_sp_update()
_mission_item.yaw = yaw;
pos_sp_triplet->current.yaw = _mission_item.yaw;
pos_sp_triplet->current.yaw_valid = true;
}
// we set yaw directly so we can run this in parallel to the FOH update