Show RT-Az/Ele

This commit is contained in:
int2001
2025-03-16 07:31:06 +00:00
parent 7cd2d53e3f
commit 1ceb4c122b
2 changed files with 3 additions and 2 deletions

View File

@@ -43,7 +43,7 @@
</select>
<button id="plot" type="button" name="plot" class="btn btn-primary me-1 ld-ext-right ld-ext-right-plot" onclick="plot_sat()"><?= __("Plot"); ?><div class="ld ld-ring ld-spin"></div></button>
<button id="plot" type="button" name="plot" class="btn btn-primary me-1 ld-ext-right ld-ext-right-plot" onclick="plot_sat()"><?= __("Plot"); ?><div class="ld ld-ring ld-spin"></div></button><p id="az"></p>&nbsp;&nbsp;<p id="ele"></p>
</form>
</div>

View File

@@ -381,7 +381,8 @@ var sats = (function (L, d3, satelliteJs) {
function updateSats(date) {
sats.forEach(function (sat) {
sat.setDate(date).update();
console.log(sat._lookAngles);
$("#az").html("Azimuth: "+Math.round((sat._lookAngles.azimuth*100),2)/100);
$("#ele").html("Elevation: "+Math.round((sat._lookAngles.elevation*100),2)/100);
});
return sats
};