Skip to content

Commit

Permalink
Update Test_Sighting.html Rev G
Browse files Browse the repository at this point in the history
  • Loading branch information
pdr0663 authored Sep 4, 2024
1 parent 294e9ca commit 6d166b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Test_Sighting.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</head>
<body>
<h1>Compass Bearing</h1>
<p id="instruction">Press the button to request permission and capture the bearing.<br>Rev F</p>
<p id="instruction">Press the button to request permission and capture the bearing.<br>Rev G</p>
<input type="text" id="bearing" readonly placeholder="Bearing will appear here">
<button id="permissionButton">Request Permission & Capture Bearing</button>
<button id="captureButton" style="display: none;">Capture Bearing</button>
Expand All @@ -46,6 +46,7 @@ <h1>Compass Bearing</h1>
function updateBearing(event) {
magnetic_bearing = event.webkitCompassHeading;
true_bearing = fixBearing(magnetic_bearing + magnetic_declination);
console.log(magnetic_declination);
console.log("M" + Math.round(magnetic_bearing) + "° T" + Math.round(true_bearing) + "°");
}

Expand Down

0 comments on commit 6d166b0

Please sign in to comment.