Skip to content

Commit

Permalink
Set gyro_sample graph scaling to the same as other gyro graphs (#700)
Browse files Browse the repository at this point in the history
set gyro_sample graph scaling to the same as others
  • Loading branch information
ctzsnooze authored Feb 4, 2024
1 parent a11ed06 commit fb92627
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions js/graph_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,21 @@ GraphConfig.load = function(config) {
default:
return getCurveForMinMaxFields(fieldName);
}
case 'GYRO_SAMPLE':
switch (fieldName) {
case 'debug[0]': // Before downsampling
case 'debug[1]': // After downsampling
case 'debug[2]': // After RPM
case 'debug[3]': // After all but Dyn Notch
return {
offset: 0,
power: 0.25, /* Make this 1.0 to scale linearly */
inputRange: maxDegreesSecond(gyroScaleMargin * highResolutionScale), // Maximum grad/s + 20%
outputRange: 1.0
};
default:
return getCurveForMinMaxFields(fieldName);
}
case 'RX_TIMING':
switch (fieldName) {
case 'debug[0]': // CRC 0 to max int16_t
Expand Down

0 comments on commit fb92627

Please sign in to comment.