diff options
| author | Jacob Palecki <[email protected]> | 2020-08-04 20:32:24 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-04 20:32:24 -0700 |
| commit | 97ac4933594cc886d135d0e22ddbe76763bb9d4a (patch) | |
| tree | be49553aa0cf8627906093c29e444d5efc614063 /grapher/AccelGUI.cs | |
| parent | Merge pull request #12 from JacobPalecki/GUI (diff) | |
| download | rawaccel-97ac4933594cc886d135d0e22ddbe76763bb9d4a.tar.xz rawaccel-97ac4933594cc886d135d0e22ddbe76763bb9d4a.zip | |
Add velocity gain option
Diffstat (limited to 'grapher/AccelGUI.cs')
| -rw-r--r-- | grapher/AccelGUI.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grapher/AccelGUI.cs b/grapher/AccelGUI.cs index c660afe..ae05359 100644 --- a/grapher/AccelGUI.cs +++ b/grapher/AccelGUI.cs @@ -30,7 +30,7 @@ namespace grapher OptionXY sensitivity, Option rotation, OptionXY weight, - OptionXY cap, + CapOptions cap, Option offset, Option acceleration, Option limtOrExp, @@ -78,7 +78,7 @@ namespace grapher public OptionXY Weight { get; } - public OptionXY Cap { get; } + public CapOptions Cap { get; } public Option Offset { get; } @@ -149,8 +149,6 @@ namespace grapher var inDiff = magnitudeData.magnitude - lastInputMagnitude; var outDiff = outMagnitude - lastOutputMagnitude; var slope = inDiff > 0 ? outDiff / inDiff : Sensitivity.Fields.X; - lastInputMagnitude = magnitudeData.magnitude; - lastOutputMagnitude = outMagnitude; if (!OrderedAccelPoints.ContainsKey(magnitudeData.magnitude)) { @@ -167,6 +165,8 @@ namespace grapher OrderedGainPoints.Add(magnitudeData.magnitude, slope); } + lastInputMagnitude = magnitudeData.magnitude; + lastOutputMagnitude = outMagnitude; } AccelCharts.SensitivityChart.Series[0].Points.DataBindXY(OrderedAccelPoints.Keys, OrderedAccelPoints.Values); |