Skip to content

Commit 7514548

Browse files
authored
Merge pull request #11648 from b14ckyy/wp-jump-fix
FW nav: fix WP JUMP target skipped by stale turn-smoothing flag
2 parents 613d680 + fa91f98 commit 7514548

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/navigation/navigation.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4228,6 +4228,7 @@ void calculateAndSetActiveWaypointToLocalPosition(const fpVector3_t *pos)
42284228
posControl.activeWaypoint.bearing = calculateBearingToDestination(pos);
42294229
}
42304230
posControl.activeWaypoint.nextTurnAngle = -1; // no turn angle set (-1), will be set by WP mode as required
4231+
posControl.flags.wpTurnSmoothingActive = false; // a freshly activated WP (e.g. JUMP target) must not inherit the previous WP's smoothing-reached state
42314232

42324233
posControl.activeWaypoint.pos = *pos;
42334234

0 commit comments

Comments
 (0)