mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 08:53:54 +08:00
nav: do not transition to next segment if we need to recompute
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