diff options
| author | Jacob Palecki <[email protected]> | 2020-08-13 20:56:41 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-13 20:56:41 -0700 |
| commit | 32323636b4b5390c114fc2a6d845b7621a983cdc (patch) | |
| tree | 01d7df8f55e5a1cce90617fd876eaf994eb26846 /grapher/Models/Calculations/AccelChartData.cs | |
| parent | All works smoothly (diff) | |
| download | rawaccel-32323636b4b5390c114fc2a6d845b7621a983cdc.tar.xz rawaccel-32323636b4b5390c114fc2a6d845b7621a983cdc.zip | |
Fix initial points, add poll time constant
Diffstat (limited to 'grapher/Models/Calculations/AccelChartData.cs')
| -rw-r--r-- | grapher/Models/Calculations/AccelChartData.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/grapher/Models/Calculations/AccelChartData.cs b/grapher/Models/Calculations/AccelChartData.cs index fa31f35..20142a7 100644 --- a/grapher/Models/Calculations/AccelChartData.cs +++ b/grapher/Models/Calculations/AccelChartData.cs @@ -36,7 +36,7 @@ namespace grapher.Models.Calculations OutVelocityToPoints.Clear(); } - public (double, double, double) FindInValuesFromOut(double outVelocityValue) + public (double, double, double) FindPointValuesFromOut(double outVelocityValue) { if (OutVelocityToPoints.TryGetValue(outVelocityValue, out var values)) { @@ -52,11 +52,8 @@ namespace grapher.Models.Calculations } velIdx = Math.Min(velIdx, VelocityPoints.Count - 1); - values = (VelocityPoints.ElementAt(velIdx).Key, AccelPoints.ElementAt(velIdx).Value, GainPoints.ElementAt(velIdx).Value); - OutVelocityToPoints.Add(outVelocityValue, values); - return values; } } |