diff options
| author | Jacob Palecki <[email protected]> | 2020-09-19 19:27:37 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-19 19:27:37 -0700 |
| commit | 8f5c6c2a733812b19641789e34552afe9e601686 (patch) | |
| tree | 9ad46aea405930b77ee89587a1339ea1ed51fa45 /grapher/Models/Calculations/AccelData.cs | |
| parent | Furhter designer changes (diff) | |
| download | rawaccel-8f5c6c2a733812b19641789e34552afe9e601686.tar.xz rawaccel-8f5c6c2a733812b19641789e34552afe9e601686.zip | |
further work
Diffstat (limited to 'grapher/Models/Calculations/AccelData.cs')
| -rw-r--r-- | grapher/Models/Calculations/AccelData.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grapher/Models/Calculations/AccelData.cs b/grapher/Models/Calculations/AccelData.cs index eef4d01..057a53b 100644 --- a/grapher/Models/Calculations/AccelData.cs +++ b/grapher/Models/Calculations/AccelData.cs @@ -60,8 +60,8 @@ namespace grapher.Models.Calculations public void CalculateDotsXY(int x, int y, double timeInMs) { - var outX = Math.Abs(x); - var outY = Math.Abs(y); + var outX = Math.Abs(x) / timeInMs; + var outY = Math.Abs(y) / timeInMs; (var inXVelocity, var xSensitivity, var xGain) = X.FindPointValuesFromOut(outX); EstimatedX.Velocity.Set(inXVelocity, outX); |