summaryrefslogtreecommitdiff
path: root/grapher/Models
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Models')
-rw-r--r--grapher/Models/AccelGUIFactory.cs2
-rw-r--r--grapher/Models/Calculations/AccelCalculator.cs9
-rw-r--r--grapher/Models/Charts/AccelCharts.cs4
3 files changed, 10 insertions, 5 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs
index 6a4c46f..1c42c76 100644
--- a/grapher/Models/AccelGUIFactory.cs
+++ b/grapher/Models/AccelGUIFactory.cs
@@ -381,7 +381,7 @@ namespace grapher.Models
range,
wholeCheckBox,
byComponentCheckBox,
- 245);
+ 260);
var applyOptions = new ApplyOptions(
byComponentXYLock,
diff --git a/grapher/Models/Calculations/AccelCalculator.cs b/grapher/Models/Calculations/AccelCalculator.cs
index 60c6eaa..d641873 100644
--- a/grapher/Models/Calculations/AccelCalculator.cs
+++ b/grapher/Models/Calculations/AccelCalculator.cs
@@ -136,6 +136,11 @@ namespace grapher.Models.Calculations
var ratio = outMagnitude / simulatedInputDatum.velocity;
var slope = inDiff > 0 ? outDiff / inDiff : starter;
+ if (slope < lastSlope)
+ {
+ Console.WriteLine();
+ }
+
if (ratio > maxRatio)
{
maxRatio = ratio;
@@ -398,8 +403,8 @@ namespace grapher.Models.Calculations
var timeFactor = ceil / i;
mouseInputData.x = 0;
mouseInputData.y = ceil;
- mouseInputData.time = MeasurementTime;
- mouseInputData.velocity = Velocity(0, i, mouseInputData.time);
+ mouseInputData.time = MeasurementTime*timeFactor;
+ mouseInputData.velocity = Velocity(0, ceil, mouseInputData.time);
mouseInputData.angle = Math.PI / 2;
magnitudes.Add(mouseInputData);
}
diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs
index 2369432..65c636b 100644
--- a/grapher/Models/Charts/AccelCharts.cs
+++ b/grapher/Models/Charts/AccelCharts.cs
@@ -31,8 +31,8 @@ namespace grapher
gainChart,
accelCalculator,
estimated,
- estimatedY,
- estimatedX);
+ estimatedX,
+ estimatedY);
ContainingForm = form;
EnableVelocityAndGain = enableVelocityAndGain;