From 261496303e2d8219a1b1fe905b69b900440390dd Mon Sep 17 00:00:00 2001 From: 30hours Date: Sun, 3 Mar 2024 00:40:25 +0000 Subject: [PATCH] Add SNR to detection stash data --- api/stash/detection.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/stash/detection.js b/api/stash/detection.js index b536103..f8ead5c 100644 --- a/api/stash/detection.js +++ b/api/stash/detection.js @@ -52,19 +52,22 @@ function update_data() { delay = []; doppler = []; timestamp = []; + snr = []; for (var i = 0; i < map.length; i++) { for (var j = 0; j < map[i].delay.length; j++) { delay.push(map[i].delay[j]); doppler.push(map[i].doppler[j]); + snr.push(map[i].snr[j]); timestamp.push(map[i].timestamp); } } output = { timestamp: timestamp, delay: delay, - doppler: doppler + doppler: doppler, + snr: snr }; } catch (e) { console.error(e.message);