Skip to content

Commit

Permalink
Add SV information to payload info table
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jessop authored and Mark Jessop committed May 3, 2024
1 parent 48e8eae commit 6e3caf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions static/js/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function initTables(){
{title:"Longitude", field:"lon", headerSort:false},
{title:"Alt (m)", field:"alt", headerSort:false},
{title:"V_rate (m/s)", field:"vel_v", headerSort:false},
{title:"SVs", field:'sats', headerSort:false, visible:false},
{title:"SNR", field:'snr', headerSort:false, visible:false},
{title:"Aux", field:'aux', headerSort:false, visible:false}
],
Expand Down Expand Up @@ -243,6 +244,7 @@ function initTablesImperial(){
{title:"Longitude", field:"lon", headerSort:false},
{title:"Alt (ft)", field:"alt", headerSort:false},
{title:"V_rate (ft/min)", field:"vel_v", headerSort:false},
{title:"SVs", field:'sats', headerSort:false, visible:false},
{title:"SNR", field:'snr', headerSort:false, visible:false},
{title:"Aux", field:'aux', headerSort:false, visible:false}
],
Expand Down Expand Up @@ -323,6 +325,11 @@ function updateTelemetryTable(){
}
}

if (balloon_call_data.hasOwnProperty('sats')){
balloon_call_data.sats = balloon_call_data.sats.toFixed(0);
$("#telem_table").tabulator("showColumn", "sats");
}

// Update table
telem_data.push(balloon_call_data);
}
Expand Down

0 comments on commit 6e3caf0

Please sign in to comment.