Skip to content

Commit 40f56d8

Browse files
committed
Overlay raw and smoothed rc command better
1 parent 1f2014e commit 40f56d8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/graph_config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,12 @@ GraphConfig.load = function(config) {
470470
case 'RC_SMOOTHING':
471471
switch (fieldName) {
472472
case 'debug[0]': // raw RC command
473-
return getCurveForMinMaxFieldsZeroOffset('debug[0]');
473+
return {
474+
offset: 0,
475+
power: 0.25,
476+
inputRange: 500 * gyroScaleMargin, // +20% to let compare in the same scale with the rccommands
477+
outputRange: 1.0
478+
};
474479
case 'debug[1]': // raw RC command derivative
475480
case 'debug[2]': // smoothed RC command derivative
476481
return getCurveForMinMaxFieldsZeroOffset('debug[1]', 'debug[2]');

0 commit comments

Comments
 (0)