diff options
| author | Jacob Palecki <[email protected]> | 2020-08-02 18:20:29 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-02 18:20:29 -0700 |
| commit | 26b8727a8de23f829dbd95d9ec5a7f2713da7eb7 (patch) | |
| tree | cb39d2c783e9a7bf7b64dfb7f7573b11b64f1069 /grapher/Form1.cs | |
| parent | Add velocity graph (diff) | |
| download | rawaccel-26b8727a8de23f829dbd95d9ec5a7f2713da7eb7.tar.xz rawaccel-26b8727a8de23f829dbd95d9ec5a7f2713da7eb7.zip | |
Add gain and velocity graphs
Diffstat (limited to 'grapher/Form1.cs')
| -rw-r--r-- | grapher/Form1.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs index 50d6476..fb841e9 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -118,6 +118,7 @@ namespace grapher this, AccelerationChart, VelocityChart, + GainChart, managedAcceleration, accelerationOptions, sensitivity, @@ -148,6 +149,7 @@ namespace grapher this.AccelerationChart.ChartAreas[0].CursorX.IsUserEnabled = true; this.AccelerationChart.ChartAreas[0].CursorY.IsUserEnabled = true; + this.VelocityChart.ChartAreas[0].AxisX.RoundAxisValues(); this.VelocityChart.ChartAreas[0].AxisX.ScaleView.Zoomable = true; @@ -167,6 +169,25 @@ namespace grapher this.VelocityChart.ChartAreas[0].CursorX.IsUserEnabled = true; this.VelocityChart.ChartAreas[0].CursorY.IsUserEnabled = true; + + this.GainChart.ChartAreas[0].AxisX.RoundAxisValues(); + + this.GainChart.ChartAreas[0].AxisX.ScaleView.Zoomable = true; + this.GainChart.ChartAreas[0].AxisY.ScaleView.Zoomable = true; + + this.GainChart.ChartAreas[0].AxisY.ScaleView.MinSize = 0.01; + this.GainChart.ChartAreas[0].AxisY.ScaleView.SmallScrollSize = 0.001; + + this.GainChart.ChartAreas[0].CursorY.Interval = 0.001; + + this.GainChart.ChartAreas[0].CursorX.AutoScroll = true; + this.GainChart.ChartAreas[0].CursorY.AutoScroll = true; + + this.GainChart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; + this.GainChart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true; + + this.GainChart.ChartAreas[0].CursorX.IsUserEnabled = true; + this.GainChart.ChartAreas[0].CursorY.IsUserEnabled = true; } #endregion Constructor |