Skip to content

Commit

Permalink
try to fix compass
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgilbers committed Aug 27, 2024
1 parent 5d41c4b commit 74227b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function handleOrientation(event) {
updateFieldIfNotNull('Orientation_a', event.alpha);
updateFieldIfNotNull('Orientation_b', event.beta);
updateFieldIfNotNull('Orientation_g', event.gamma);
updateFieldIfNotNull('Orientation_compass', 5/*event.webkitCompassHeading.toFixed(10)*/);
updateFieldIfNotNull('Orientation_compass', event.webkitCompassHeading.toFixed(10));
incrementEventCount();
}

Expand Down

0 comments on commit 74227b8

Please sign in to comment.