summaryrefslogtreecommitdiff
path: root/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-11-27 15:27:33 -0600
committerJacob Palecki <[email protected]>2020-11-27 15:27:33 -0600
commit851747448eff7d77973790a77be9d086e84b5ee8 (patch)
tree9702b8cbaf88f15a7c383e21c9a64adb6c7645a7 /grapher/Models/Charts/ChartState/XYTwoGraphState.cs
parentMerge pull request #38 from a1xd/1.2 (diff)
downloadrawaccel-851747448eff7d77973790a77be9d086e84b5ee8.tar.xz
rawaccel-851747448eff7d77973790a77be9d086e84b5ee8.zip
Remove experiment file, set driver lang to c++17, fix by component last mouse move
Diffstat (limited to 'grapher/Models/Charts/ChartState/XYTwoGraphState.cs')
-rw-r--r--grapher/Models/Charts/ChartState/XYTwoGraphState.cs30
1 files changed, 2 insertions, 28 deletions
diff --git a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
index 22181ad..d107f87 100644
--- a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
+++ b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
@@ -6,8 +6,6 @@ namespace grapher.Models.Charts.ChartState
{
public class XYTwoGraphState : ChartState
{
- private DriverSettings _settings;
-
public XYTwoGraphState(
ChartXY sensitivityChart,
ChartXY velocityChart,
@@ -22,23 +20,7 @@ namespace grapher.Models.Charts.ChartState
accelCalculator)
{ }
- public override DriverSettings Settings
- {
- get { return _settings; }
- set
- {
- _settings = value;
- ShouldStripSens = AccelCalculator.ShouldStripSens(ref value);
- if (ShouldStripSens)
- {
- Sensitivity = AccelCalculator.GetSens(ref value);
- }
- }
- }
-
- private bool ShouldStripSens { get; set; }
-
- private (double, double) Sensitivity { get; set; }
+ public override DriverSettings Settings { get; set; }
public override void Activate()
{
@@ -53,15 +35,7 @@ namespace grapher.Models.Charts.ChartState
public override void MakeDots(int x, int y, double timeInMs)
{
- double xCalc = x;
- double yCalc = y;
-
- if (ShouldStripSens)
- {
- (xCalc, yCalc) = AccelCalculator.StripSens(xCalc, yCalc, Sensitivity.Item1, Sensitivity.Item2);
- }
-
- Data.CalculateDotsXY((int)Math.Round(xCalc), (int)Math.Round(yCalc), timeInMs);
+ Data.CalculateDotsXY(x, y, timeInMs);
}
public override void Bind()