Skip to content

Commit c60216a

Browse files
committed
fixes
1 parent 734dd3f commit c60216a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

js/tracker.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,11 @@ function habitat_data(jsondata, alternative) {
10211021
"battery_millivolts": true,
10221022
"temperature_internal_x10": true,
10231023
"uplink_rssi_raw": true,
1024+
"oif411_instrument_number": true,
1025+
"oif411_ext_voltage": true,
1026+
"cfh_instrument_number": true,
1027+
"cobald_instrument_number": true,
1028+
"cobald_sonde_number": true
10241029
};
10251030

10261031
var suffixes = globalSuffixes;
@@ -3111,7 +3116,7 @@ function addPosition(position) {
31113116

31123117
// Graph Stuff
31133118

3114-
var graph_inhibited_fields = ['frequency', 'frequency_tx', 'burst_timer', 'xdata', 'oif411_ozone_pump_temp', 'oif411_ozone_battery_v', 'oif411_ozone_pump_curr_mA', 'oif411_serial', 'oif411_version', 'oif411_ozone_current_uA'];
3119+
var graph_fields = ['altitude', 'pred.alt', 'batt', 'humidity', 'pressure', 'sats', 'temperature_external', 'oif411_O3_partial_pressure'];
31153120

31163121
function updateGraph(vcallsign, reset_selection) {
31173122
if(!plot || !plot_open) return;
@@ -3285,7 +3290,7 @@ function graphAddPosition(vcallsign, new_data) {
32853290
i = (k in vehicle.graph_data_map) ? vehicle.graph_data_map[k] : data.length;
32863291

32873292
// Disable plotting of a few fields.
3288-
if (graph_inhibited_fields.includes(k)){
3293+
if (!(graph_fields.includes(k))){
32893294
return;
32903295
}
32913296

0 commit comments

Comments
 (0)