From 40f56d845253b12742a5db68703d708f366b2eb4 Mon Sep 17 00:00:00 2001 From: Yurii Soldak Date: Mon, 9 Sep 2019 11:47:41 +0200 Subject: [PATCH 1/2] Overlay raw and smoothed rc command better --- js/graph_config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/graph_config.js b/js/graph_config.js index a2cfcf76..b5fb8f7e 100644 --- a/js/graph_config.js +++ b/js/graph_config.js @@ -470,7 +470,12 @@ GraphConfig.load = function(config) { case 'RC_SMOOTHING': switch (fieldName) { case 'debug[0]': // raw RC command - return getCurveForMinMaxFieldsZeroOffset('debug[0]'); + return { + offset: 0, + power: 0.25, + inputRange: 500 * gyroScaleMargin, // +20% to let compare in the same scale with the rccommands + outputRange: 1.0 + }; case 'debug[1]': // raw RC command derivative case 'debug[2]': // smoothed RC command derivative return getCurveForMinMaxFieldsZeroOffset('debug[1]', 'debug[2]'); From 88ed53e182be3c5f0672fea7d305b0cab95888b1 Mon Sep 17 00:00:00 2001 From: Yurii Soldak Date: Mon, 9 Sep 2019 11:48:12 +0200 Subject: [PATCH 2/2] present raw rc command in us --- js/flightlog_fields_presenter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/flightlog_fields_presenter.js b/js/flightlog_fields_presenter.js index 824644fe..cf86dfe4 100644 --- a/js/flightlog_fields_presenter.js +++ b/js/flightlog_fields_presenter.js @@ -566,6 +566,8 @@ function FlightLogFieldPresenter() { break; case 'RC_SMOOTHING': switch (fieldName) { + case 'debug[0]': + return (value + 1500).toFixed(0) + " us"; case 'debug[3]': // rx frame rate [us] return (value / 1000).toFixed(1) + 'ms'; }