mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Show RT-Az/Ele
This commit is contained in:
@@ -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> <p id="ele"></p>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user