Skip to content

Commit

Permalink
fix correcting magnetic compass declination (fixes streetcomplete#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Mar 18, 2021
1 parent 90933d5 commit d9e136b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Compass(
R = remapToDisplayRotation(R)
val orientation = FloatArray(3)
SensorManager.getOrientation(R, orientation)
val azimut = orientation[0] - declination
val azimut = orientation[0] + declination
val pitch = orientation[1]
val roll = orientation[2]
rotation = azimut
Expand Down

0 comments on commit d9e136b

Please sign in to comment.