summaryrefslogtreecommitdiff
path: root/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-17 20:26:15 -0700
committerJacob Palecki <[email protected]>2020-09-17 20:26:15 -0700
commitdf173decac3ac5e1043b53961f1512bb88b85136 (patch)
tree45cc109c002f41924d7148115843b765c774fc8e /grapher/Models/Charts/ChartState/XYTwoGraphState.cs
parentMuch progress (diff)
downloadrawaccel-df173decac3ac5e1043b53961f1512bb88b85136.tar.xz
rawaccel-df173decac3ac5e1043b53961f1512bb88b85136.zip
Further work
Diffstat (limited to 'grapher/Models/Charts/ChartState/XYTwoGraphState.cs')
-rw-r--r--grapher/Models/Charts/ChartState/XYTwoGraphState.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
index b54832c..8be88f0 100644
--- a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
+++ b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
@@ -12,12 +12,14 @@ namespace grapher.Models.Charts.ChartState
ChartXY sensitivityChart,
ChartXY velocityChart,
ChartXY gainChart,
- AccelData accelData)
+ AccelData accelData,
+ AccelCalculator accelCalculator)
: base(
sensitivityChart,
velocityChart,
gainChart,
- accelData)
+ accelData,
+ accelCalculator)
{ }
public override DriverSettings Settings
@@ -55,14 +57,14 @@ namespace grapher.Models.Charts.ChartState
(xCalc, yCalc) = AccelCalculator.StripSens(xCalc, yCalc, Sensitivity.Item1, Sensitivity.Item2);
}
- AccelData.CalculateDotsXY((int)Math.Round(xCalc), (int)Math.Round(yCalc), timeInMs);
+ Data.CalculateDotsXY((int)Math.Round(xCalc), (int)Math.Round(yCalc), timeInMs);
}
public override void Bind()
{
- SensitivityChart.BindXY(AccelData.X.AccelPoints, AccelData.Y.AccelPoints);
- VelocityChart.BindXY(AccelData.X.VelocityPoints, AccelData.Y.VelocityPoints);
- GainChart.BindXY(AccelData.X.GainPoints, AccelData.Y.GainPoints);
+ SensitivityChart.BindXY(Data.X.AccelPoints, Data.Y.AccelPoints);
+ VelocityChart.BindXY(Data.X.VelocityPoints, Data.Y.VelocityPoints);
+ GainChart.BindXY(Data.X.GainPoints, Data.Y.GainPoints);
}
}
}