From 3dd0bb9163380de64d0df4f0b5c16dd86979714e Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Thu, 20 Aug 2020 00:32:11 -0700 Subject: Sigmoid gain --- grapher/Layouts/OffLayout.cs | 2 +- grapher/Layouts/SigmoidGainLayout.cs | 20 ++++++++++++++++++++ grapher/Models/Options/AccelOptions.cs | 1 + grapher/grapher.csproj | 1 + 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 grapher/Layouts/SigmoidGainLayout.cs (limited to 'grapher') 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 @@ + -- cgit v1.2.3