mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 17:33:34 +08:00
navigator: when setting pos_sp_triplet yaw, also set the yaw valid flag to true
This commit is contained in:
@@ -1263,6 +1263,7 @@ Mission::heading_sp_update()
|
|||||||
|
|
||||||
_mission_item.yaw = yaw;
|
_mission_item.yaw = yaw;
|
||||||
pos_sp_triplet->current.yaw = _mission_item.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
|
// we set yaw directly so we can run this in parallel to the FOH update
|
||||||
|
|||||||
Reference in New Issue
Block a user