mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-09 19:39:00 +08:00
nav: do not transition to next segment if we need to recompute
old-commit-hash: 512ab3d8fbee97ef3cfb2dcd0773c0dca2de8656
This commit is contained in:
@@ -198,7 +198,7 @@ void MapWindow::timerUpdate() {
|
||||
}
|
||||
|
||||
// Transition to next route segment
|
||||
if (distance_to_maneuver < -MANEUVER_TRANSITION_THRESHOLD) {
|
||||
if (!shouldRecompute() && (distance_to_maneuver < -MANEUVER_TRANSITION_THRESHOLD)) {
|
||||
auto next_segment = segment.nextRouteSegment();
|
||||
if (next_segment.isValid()) {
|
||||
segment = next_segment;
|
||||
|
||||
Reference in New Issue
Block a user