summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-22 17:35:49 -0700
committerJacob Palecki <[email protected]>2020-09-22 17:35:49 -0700
commitc122ae6945343fec145ccbf425316c03346626fe (patch)
tree87bc9102b4d6401df95f6ef980d508942f2104bd
parentUpdate credits (diff)
downloadrawaccel-c122ae6945343fec145ccbf425316c03346626fe.tar.xz
rawaccel-c122ae6945343fec145ccbf425316c03346626fe.zip
Fix gain scaling
-rw-r--r--grapher/Models/Calculations/AccelCalculator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/grapher/Models/Calculations/AccelCalculator.cs b/grapher/Models/Calculations/AccelCalculator.cs
index d9b51b2..f2a6c7c 100644
--- a/grapher/Models/Calculations/AccelCalculator.cs
+++ b/grapher/Models/Calculations/AccelCalculator.cs
@@ -125,8 +125,8 @@ namespace grapher.Models.Calculations
data.OrderedVelocityPointsList.AddRange(data.VelocityPoints.Values.ToList());
data.MaxAccel = maxRatio;
data.MinAccel = minRatio;
- data.MaxGain = maxRatio;
- data.MinGain = minRatio;
+ data.MaxGain = maxSlope;
+ data.MinGain = minSlope;
}
public void CalculateCombinedDiffSens(AccelData data, ManagedAccel accel, DriverSettings settings, ICollection<MagnitudeData> magnitudeData)