From 394ed4c8550539f1d0c42be8d1be521a617779a4 Mon Sep 17 00:00:00 2001 From: Mark Spatz Date: Sat, 17 Feb 2018 23:00:17 -0500 Subject: [PATCH] Update graph_spectrum.js Removed pidRate multiplication times two. It was reporting false motor noise peak results. --- js/graph_spectrum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/graph_spectrum.js b/js/graph_spectrum.js index 2951fda9..c6bed5e2 100644 --- a/js/graph_spectrum.js +++ b/js/graph_spectrum.js @@ -62,7 +62,7 @@ try { if (sysConfig.pid_process_denom != null) { pidRate = gyroRate / sysConfig.pid_process_denom; } - var blackBoxRate = 2 * pidRate * (sysConfig['frameIntervalPNum'] / sysConfig['frameIntervalPDenom']); + var blackBoxRate = pidRate * (sysConfig['frameIntervalPNum'] / sysConfig['frameIntervalPDenom']); var dataBuffer = { fieldIndex: 0, curve: 0,