diff options
| author | Jacob Palecki <[email protected]> | 2020-08-20 00:32:11 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-20 00:32:11 -0700 |
| commit | 3dd0bb9163380de64d0df4f0b5c16dd86979714e (patch) | |
| tree | e5cb12562df1a3e24ba47759813bbbc502aaf381 /grapher | |
| parent | Add natural gain accel; add scale by DPI, poll rate in GUI (diff) | |
| download | rawaccel-3dd0bb9163380de64d0df4f0b5c16dd86979714e.tar.xz rawaccel-3dd0bb9163380de64d0df4f0b5c16dd86979714e.zip | |
Sigmoid gain
Diffstat (limited to 'grapher')
| -rw-r--r-- | grapher/Layouts/OffLayout.cs | 2 | ||||
| -rw-r--r-- | grapher/Layouts/SigmoidGainLayout.cs | 20 | ||||
| -rw-r--r-- | grapher/Models/Options/AccelOptions.cs | 1 | ||||
| -rw-r--r-- | grapher/grapher.csproj | 1 |
4 files changed, 23 insertions, 1 deletions
diff --git a/grapher/Layouts/OffLayout.cs b/grapher/Layouts/OffLayout.cs index 55f44b7..087885f 100644 --- a/grapher/Layouts/OffLayout.cs +++ b/grapher/Layouts/OffLayout.cs @@ -12,7 +12,7 @@ namespace grapher.Layouts : base() { Name = "Off"; - Index = 8; + Index = 9; ShowOptions = new bool[] { false, false, false, false }; OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty }; ShowOptionsXY = new bool[] { false, false }; diff --git a/grapher/Layouts/SigmoidGainLayout.cs b/grapher/Layouts/SigmoidGainLayout.cs new file mode 100644 index 0000000..c620925 --- /dev/null +++ b/grapher/Layouts/SigmoidGainLayout.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace grapher.Layouts +{ + public class SigmoidGainLayout : LayoutBase + { + public SigmoidGainLayout() + : base() + { + Name = "SigmoidGain"; + Index = 8; + ShowOptions = new bool[] { true, true, true, true }; + OptionNames = new string[] { Offset, Acceleration, Limit, Midpoint }; + } + } +} diff --git a/grapher/Models/Options/AccelOptions.cs b/grapher/Models/Options/AccelOptions.cs index 03d6ff6..8da873f 100644 --- a/grapher/Models/Options/AccelOptions.cs +++ b/grapher/Models/Options/AccelOptions.cs @@ -23,6 +23,7 @@ namespace grapher new SigmoidLayout(), new PowerLayout(), new NaturalGainLayout(), + new SigmoidGainLayout(), new OffLayout() }.ToDictionary(k => k.Name); diff --git a/grapher/grapher.csproj b/grapher/grapher.csproj index cc7a8b4..2d9f4ab 100644 --- a/grapher/grapher.csproj +++ b/grapher/grapher.csproj @@ -48,6 +48,7 @@ </ItemGroup> <ItemGroup> <Compile Include="Layouts\NaturalGainLayout.cs" /> + <Compile Include="Layouts\SigmoidGainLayout.cs" /> <Compile Include="Models\Calculations\AccelCalculator.cs" /> <Compile Include="Models\Calculations\AccelChartData.cs" /> <Compile Include="Models\Calculations\AccelData.cs" /> |