Fix up display of nav settings in skyview
This commit is contained in:
parent
d267d2257a
commit
0b9f7e4cef
|
@ -212,7 +212,7 @@
|
||||||
<div class="infoBlockSection">
|
<div class="infoBlockSection">
|
||||||
<div>
|
<div>
|
||||||
<div class="infoHeading infoRowFluid fourColumnSection1">Nav alt:</div>
|
<div class="infoHeading infoRowFluid fourColumnSection1">Nav alt:</div>
|
||||||
<div class="infoData infoRowFluid fourColumnSection2"><span id="selected_nav_alt"/></div>
|
<div class="infoData infoRowFluid fourColumnSection2"><span id="selected_nav_altitude"/></div>
|
||||||
<div class="infoHeading infoRowFluid fourColumnSection3">Nav heading:</div>
|
<div class="infoHeading infoRowFluid fourColumnSection3">Nav heading:</div>
|
||||||
<div class="infoData infoRowFluid fourColumnSection4"><span id="selected_nav_heading"/></div>
|
<div class="infoData infoRowFluid fourColumnSection4"><span id="selected_nav_heading"/></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -220,7 +220,7 @@
|
||||||
<div class="infoHeading infoRowFluid fourColumnSection1">Nav modes:</div>
|
<div class="infoHeading infoRowFluid fourColumnSection1">Nav modes:</div>
|
||||||
<div class="infoData infoRowFluid fourColumnSection2"><span id="selected_nav_modes"/></div>
|
<div class="infoData infoRowFluid fourColumnSection2"><span id="selected_nav_modes"/></div>
|
||||||
<div class="infoHeading infoRowFluid fourColumnSection3">Nav QNH:</div>
|
<div class="infoHeading infoRowFluid fourColumnSection3">Nav QNH:</div>
|
||||||
<div class="infoData infoRowFluid fourColumnSection4"><span id="selected_alt_setting"/></div>
|
<div class="infoData infoRowFluid fourColumnSection4"><span id="selected_nav_qnh"/></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="infoBlockSection lightGreyBackground">
|
<div class="infoBlockSection lightGreyBackground">
|
||||||
|
|
|
@ -25,7 +25,7 @@ function PlaneObject(icao) {
|
||||||
this.true_heading = null;
|
this.true_heading = null;
|
||||||
this.mach = null;
|
this.mach = null;
|
||||||
this.roll = null;
|
this.roll = null;
|
||||||
this.nav_alt = null;
|
this.nav_altitude = null;
|
||||||
this.nav_heading = null;
|
this.nav_heading = null;
|
||||||
this.nav_modes = null;
|
this.nav_modes = null;
|
||||||
this.nav_qnh = null;
|
this.nav_qnh = null;
|
||||||
|
|
|
@ -955,17 +955,17 @@ function refreshSelected() {
|
||||||
$('#selected_track_rate').text(selected.track_rate.toFixed(2));
|
$('#selected_track_rate').text(selected.track_rate.toFixed(2));
|
||||||
}
|
}
|
||||||
$('#selected_geom_rate').text(format_vert_rate_long(selected.geom_rate, DisplayUnits));
|
$('#selected_geom_rate').text(format_vert_rate_long(selected.geom_rate, DisplayUnits));
|
||||||
if (selected.alt_setting == null) {
|
if (selected.nav_qnh == null) {
|
||||||
$('#selected_alt_setting').text("n/a");
|
$('#selected_nav_qnh').text("n/a");
|
||||||
} else {
|
} else {
|
||||||
$('#selected_alt_setting').text(selected.alt_setting.toFixed(1) + " hPa");
|
$('#selected_nav_qnh').text(selected.nav_qnh.toFixed(1) + " hPa");
|
||||||
}
|
}
|
||||||
$('#selected_intent_alt').text(format_altitude_long(selected.intent_alt, 0, DisplayUnits));
|
$('#selected_nav_altitude').text(format_altitude_long(selected.nav_altitude, 0, DisplayUnits));
|
||||||
$('#selected_intent_heading').text(format_track_long(selected.intent_heading));
|
$('#selected_nav_heading').text(format_track_long(selected.nav_heading));
|
||||||
if (selected.intent_modes == null) {
|
if (selected.nav_modes == null) {
|
||||||
$('#selected_intent_modes').text("n/a");
|
$('#selected_nav_modes').text("n/a");
|
||||||
} else {
|
} else {
|
||||||
$('#selected_intent_modes').text(selected.intent_modes.join());
|
$('#selected_nav_modes').text(selected.nav_modes.join());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selected.version == null) {
|
if (selected.version == null) {
|
||||||
|
|
Loading…
Reference in a new issue