Skip to content

Commit

Permalink
Fixed excessive turns (no idea why this fixes it but whatever)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 20, 2024
1 parent 4b50d0a commit 3bfe8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/utils/gps_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension GpsUtils on GpsCoordinates {

final minimumDistance = min(deltaLat, deltaLong);
if (minimumDistance >= moveLengthMeters) {
distance += (minimumDistance / moveLengthMeters) * sqrt2;
distance += (minimumDistance ~/ moveLengthMeters) * sqrt2;
}

final translationDelta = (deltaLat - deltaLong).abs();
Expand Down

0 comments on commit 3bfe8cb

Please sign in to comment.