diff options
Diffstat (limited to 'grapher/Models/Calculations/AccelChartData.cs')
| -rw-r--r-- | grapher/Models/Calculations/AccelChartData.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/grapher/Models/Calculations/AccelChartData.cs b/grapher/Models/Calculations/AccelChartData.cs index 98d501b..60d4c89 100644 --- a/grapher/Models/Calculations/AccelChartData.cs +++ b/grapher/Models/Calculations/AccelChartData.cs @@ -14,7 +14,7 @@ namespace grapher.Models.Calculations VelocityPoints = new SortedDictionary<double, double>(); GainPoints = new SortedDictionary<double, double>(); OutVelocityToPoints = new Dictionary<double, (double, double, double)>(); - LogToIndex = new int[601]; + LogToIndex = new int[701]; } #endregion Constructors @@ -85,15 +85,13 @@ namespace grapher.Models.Calculations { log = -2; } - else if (log > 4) + else if (log > 5) { - log = 4; - } - else - { - log = log * 100 + 200; + log = 5; } + log = log * 100 + 200; + var velIdx = LogToIndex[(int)log]; return velIdx; |