Add accuracy fields

This commit is contained in:
James Wilson 2018-07-31 12:17:27 -05:00
parent 3e4012e958
commit 3298eb77b4
3 changed files with 40 additions and 12 deletions

View file

@ -575,7 +575,7 @@
<span title="Navigation accuracy category of the position (95% bound on positions).">Nac_p</span>: <span title="Navigation accuracy category of the position (95% bound on positions).">Nac_p</span>:
</div> </div>
<div class="infoData infoRowFluid fourColumnSection2"> <div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_source">n/a</span> <span id="selected_nac_p">n/a</span>
</div> </div>
</div> </div>
<div class="infoRowLine"> <div class="infoRowLine">
@ -583,7 +583,7 @@
Sil_type: Sil_type:
</div> </div>
<div class="infoData infoRowFluid fourColumnSection2"> <div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_message_count">n/a</span> <span id="selected_sil_type">n/a</span>
</div> </div>
</div> </div>
<div class="infoRowLine"> <div class="infoRowLine">
@ -591,7 +591,7 @@
<span title="Navigation accuracy category of the velocity (95% bound on velocities).">Nac_v</span>: <span title="Navigation accuracy category of the velocity (95% bound on velocities).">Nac_v</span>:
</div> </div>
<div class="infoData infoRowFluid fourColumnSection2"> <div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_track">n/a</span> <span id="selected_nac_p">n/a</span>
</div> </div>
</div> </div>
<div class="infoRowLine"> <div class="infoRowLine">
@ -599,7 +599,7 @@
Nic_baro: Nic_baro:
</div> </div>
<div class="infoData infoRowFluid fourColumnSection2"> <div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_track">n/a</span> <span id="selected_nic_baro">n/a</span>
</div> </div>
</div> </div>
<div class="infoRowLine"> <div class="infoRowLine">
@ -607,7 +607,7 @@
<span title="Surveillance integrity level (probability of positions lying outside the claimed radius of containment).">Sil</span>: <span title="Surveillance integrity level (probability of positions lying outside the claimed radius of containment).">Sil</span>:
</div> </div>
<div class="infoData infoRowFluid fourColumnSection2"> <div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_track">n/a</span> <span id="selected_sil">n/a</span>
</div> </div>
</div> </div>
<!-- </div> --> <!-- </div> -->

View file

@ -28,7 +28,13 @@ function PlaneObject(icao) {
this.nav_altitude = 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;
this.nac_p = null;
this.nac_v = null;
this.nic_baro = null;
this.sil_type = null;
this.sil = null;
this.baro_rate = null; this.baro_rate = null;
this.geom_rate = null; this.geom_rate = null;
@ -438,7 +444,8 @@ PlaneObject.prototype.updateData = function(receiver_timestamp, data) {
var fields = ["alt_baro", "alt_geom", "gs", "ias", "tas", "track", var fields = ["alt_baro", "alt_geom", "gs", "ias", "tas", "track",
"track_rate", "mag_heading", "true_heading", "mach", "track_rate", "mag_heading", "true_heading", "mach",
"roll", "nav_altitude", "nav_heading", "nav_modes", "roll", "nav_altitude", "nav_heading", "nav_modes",
"nac_p", "nac_v", "nic_baro", "sil_type", "sil",
"nav_qnh", "baro_rate", "geom_rate", "nav_qnh", "baro_rate", "geom_rate",
"squawk", "category", "version"]; "squawk", "category", "version"];

View file

@ -381,10 +381,6 @@ function start_load_history() {
} }
function load_history_item(i) { function load_history_item(i) {
if (i >= PositionHistorySize) {
end_load_history();
}
console.log("Loading history #" + i); console.log("Loading history #" + i);
$("#loader_progress").attr('value',i); $("#loader_progress").attr('value',i);
@ -1018,7 +1014,32 @@ function refreshSelected() {
$('#selected_nav_modes').text("n/a"); $('#selected_nav_modes').text("n/a");
} else { } else {
$('#selected_nav_modes').text(selected.nav_modes.join()); $('#selected_nav_modes').text(selected.nav_modes.join());
} }
if (selected.nic_baro == null) {
$('#selected_nic_baro').text("n/a");
} else {
$('#selected_nic_baro').text(selected.nic_baro);
}
if (selected.nac_p == null) {
$('#selected_nac_p').text("n/a");
} else {
$('#selected_nac_p').text(selected.nac_p);
}
if (selected.nac_v == null) {
$('#selected_nac_v').text("n/a");
} else {
$('#selected_nac_v').text(selected.nac_v);
}
if (selected.sil == null) {
$('#selected_sil').text("n/a");
} else {
$('#selected_sil').text(selected.sil);
}
if (selected.sil_type == null) {
$('#selected_sil_type').text("n/a");
} else {
$('#selected_sil_type').text(selected.sil_type);
}
if (selected.version == null) { if (selected.version == null) {
$('#selected_version').text('none'); $('#selected_version').text('none');