Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/navigation/navigation.c
Original file line number Diff line number Diff line change
Expand Up @@ -7217,6 +7217,8 @@ static void setLandWaypoint(const fpVector3_t *pos, const fpVector3_t *nextWpPos
}

posControl.wpInitialDistance = calculateDistanceToDestination(&posControl.activeWaypoint.pos);
// Read by the FLY_BY corner cut before isWaypointReached() refreshes it: the old value skips this WP
posControl.wpDistance = posControl.wpInitialDistance;
posControl.wpInitialAltitude = posControl.actualState.abs.pos.z;
posControl.wpAltitudeReached = false;
posControl.wpAltitudeEnforceActive = false;
Expand Down
Loading