diff --git a/Test_Sighting.html b/Test_Sighting.html
index b0fc02e..81bf9dd 100644
--- a/Test_Sighting.html
+++ b/Test_Sighting.html
@@ -36,6 +36,8 @@
Compass Bearing
// Function to update the bearing
function updateBearing(event) {
let alpha = event.alpha;
+ const true_bearing = event.alpha;
+ const magnetic_bearing = event.webkitCompassHeading;
/*
// Adjust for different screen orientations
if (window.orientation === 0) { // Portrait
@@ -69,7 +71,7 @@ Compass Bearing
function captureBearing() {
if (currentBearing !== null) {
// document.getElementById('bearing').value = currentBearing + "°";
- document.getElementById('bearing').value = "alpha B " + currentBearing;
+ document.getElementById('bearing').value = "C -> " + 'M' + magnetic_bearing + " T" + true_bearing;
} else {
document.getElementById('bearing').value = "No compass data available";
}