Skip to content

Commit

Permalink
update map.js
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsosousah committed Jun 13, 2024
1 parent d7fdb2e commit 0afa426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function getLocation(zoom = true) {
}

// Use GPS heading if user is ruffly in a straight line for the last 5 seconds and over 12kph
if (gpsHeading && inStraightLine && speed >= (12 * 1000) / (60 * 60)) {
if (gpsHeading && speed >= (12 * 1000) / (60 * 60)) {
// Calculate offset between gps heading and compass heading
deviceHeadingOffset = gpsHeading - compassHeading;

Expand Down

0 comments on commit 0afa426

Please sign in to comment.