summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUI.cs
diff options
context:
space:
mode:
authorJacobPalecki <[email protected]>2020-09-21 14:20:18 -0700
committerGitHub <[email protected]>2020-09-21 14:20:18 -0700
commit4ec16a2ff35e0e910a13f92713d56d317b24e790 (patch)
treec4aead24d52e3002cfd3282ddd697a3766de405a /grapher/Models/AccelGUI.cs
parentMerge pull request #20 from JacobPalecki/GUI (diff)
parentx/y diff sens works (diff)
downloadrawaccel-4ec16a2ff35e0e910a13f92713d56d317b24e790.tar.xz
rawaccel-4ec16a2ff35e0e910a13f92713d56d317b24e790.zip
Merge pull request #21 from JacobPalecki/GUI
GUI: Icon, Separate X/Y sens mode, some fixes
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
-rw-r--r--grapher/Models/AccelGUI.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs
index 3acb943..95d0c25 100644
--- a/grapher/Models/AccelGUI.cs
+++ b/grapher/Models/AccelGUI.cs
@@ -96,14 +96,13 @@ namespace grapher
public void RefreshOnRead()
{
- UpdateGraph();
UpdateShownActiveValues();
+ UpdateGraph();
}
public void UpdateGraph()
{
- AccelCalculator.Calculate(
- AccelCharts.AccelData,
+ AccelCharts.Calculate(
Settings.ActiveAccel,
Settings.RawAccelSettings.AccelerationSettings);
AccelCharts.Bind();
@@ -128,7 +127,7 @@ namespace grapher
private void SetupWriteButton()
{
- WriteButton.Top = AccelCharts.SensitivityChart.Top + AccelCharts.SensitivityChart.Height - Constants.WriteButtonVerticalOffset;
+ WriteButton.Top = AccelCharts.Top + AccelCharts.TopChartHeight - Constants.WriteButtonVerticalOffset;
SetWriteButtonDefault();
}