diff --git a/public_html/index.html b/public_html/index.html index 577523c..c7899f0 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -575,7 +575,7 @@ Nac_p:
- n/a + n/a
@@ -583,7 +583,7 @@ Sil_type:
- n/a + n/a
@@ -591,7 +591,7 @@ Nac_v:
- n/a + n/a
@@ -599,7 +599,7 @@ Nic_baro:
- n/a + n/a
@@ -607,7 +607,7 @@ Sil:
- n/a + n/a
diff --git a/public_html/planeObject.js b/public_html/planeObject.js index db9c56c..554d7ac 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -28,7 +28,13 @@ function PlaneObject(icao) { this.nav_altitude = null; this.nav_heading = 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.geom_rate = null; @@ -438,7 +444,8 @@ 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", + "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"]; diff --git a/public_html/script.js b/public_html/script.js index fcf928a..22f19f0 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -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); @@ -1018,7 +1014,32 @@ function refreshSelected() { $('#selected_nav_modes').text("n/a"); } 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');