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

View file

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

View file

@ -381,10 +381,6 @@ function start_load_history() {
}
function load_history_item(i) {
if (i >= PositionHistorySize) {
end_load_history();
}
console.log("Loading history #" + i);
$("#loader_progress").attr('value',i);
@ -1019,6 +1015,31 @@ function refreshSelected() {
} else {
$('#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) {
$('#selected_version').text('none');