Skip to content

Commit ccf3e35

Browse files
authored
Rc smoothing graph fix (#365)
Rc smoothing graph fix
2 parents 1f2014e + 88ed53e commit ccf3e35

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

js/flightlog_fields_presenter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ function FlightLogFieldPresenter() {
566566
break;
567567
case 'RC_SMOOTHING':
568568
switch (fieldName) {
569+
case 'debug[0]':
570+
return (value + 1500).toFixed(0) + " us";
569571
case 'debug[3]': // rx frame rate [us]
570572
return (value / 1000).toFixed(1) + 'ms';
571573
}

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)