Add SNR to detection stash data

This commit is contained in:
30hours 2024-03-03 00:40:25 +00:00
parent bdcc7a2ed3
commit 261496303e

View file

@ -52,19 +52,22 @@ function update_data() {
delay = []; delay = [];
doppler = []; doppler = [];
timestamp = []; timestamp = [];
snr = [];
for (var i = 0; i < map.length; i++) for (var i = 0; i < map.length; i++)
{ {
for (var j = 0; j < map[i].delay.length; j++) for (var j = 0; j < map[i].delay.length; j++)
{ {
delay.push(map[i].delay[j]); delay.push(map[i].delay[j]);
doppler.push(map[i].doppler[j]); doppler.push(map[i].doppler[j]);
snr.push(map[i].snr[j]);
timestamp.push(map[i].timestamp); timestamp.push(map[i].timestamp);
} }
} }
output = { output = {
timestamp: timestamp, timestamp: timestamp,
delay: delay, delay: delay,
doppler: doppler doppler: doppler,
snr: snr
}; };
} catch (e) { } catch (e) {
console.error(e.message); console.error(e.message);