diff options
| author | Jacob Palecki <[email protected]> | 2020-09-17 23:51:47 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-17 23:51:47 -0700 |
| commit | 1dd0c108b8948c50fd8f2b9c9055dbb8e7d47270 (patch) | |
| tree | 4b6a0b3f59bdb9f0e808e688e972d42b1527cd2c /grapher/Models/Charts/ChartState/XYTwoGraphState.cs | |
| parent | Further work (diff) | |
| download | rawaccel-1dd0c108b8948c50fd8f2b9c9055dbb8e7d47270.tar.xz rawaccel-1dd0c108b8948c50fd8f2b9c9055dbb8e7d47270.zip | |
Add y lines to graphes + further work
Diffstat (limited to 'grapher/Models/Charts/ChartState/XYTwoGraphState.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartState/XYTwoGraphState.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs index 8be88f0..69dc335 100644 --- a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs +++ b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs @@ -66,5 +66,11 @@ namespace grapher.Models.Charts.ChartState VelocityChart.BindXY(Data.X.VelocityPoints, Data.Y.VelocityPoints); GainChart.BindXY(Data.X.GainPoints, Data.Y.GainPoints); } + + public override void Calculate(ManagedAccel accel, DriverSettings settings) + { + Calculator.Calculate(Data.X, accel, settings.sensitivity.x, Calculator.MagnitudesX); + Calculator.Calculate(Data.Y, accel, settings.sensitivity.y, Calculator.MagnitudesY); + } } } |