public static TurboControllerDescription FromIniSection(IniFileSection controllerSection) {
     return new TurboControllerDescription {
         UpLimit = controllerSection.GetDouble("UP_LIMIT", double.NaN),
         DownLimit = controllerSection.GetDouble("DOWN_LIMIT", double.NaN),
         Filter = controllerSection.GetDouble("FILTER", 0.99d),
         Combinator = controllerSection.GetEnum("COMBINATOR", Combinator.None),
         Input = controllerSection.GetEnum("INPUT", ControllerInput.None),
         Lut = controllerSection.GetLut("LUT")
     };
 }
示例#2
0
 public static TurboControllerDescription FromIniSection(IniFileSection controllerSection)
 {
     return(new TurboControllerDescription {
         UpLimit = controllerSection.GetDouble("UP_LIMIT", double.NaN),
         DownLimit = controllerSection.GetDouble("DOWN_LIMIT", double.NaN),
         Filter = controllerSection.GetDouble("FILTER", 0.99d),
         Combinator = controllerSection.GetEnum("COMBINATOR", Combinator.None),
         Input = controllerSection.GetEnum("INPUT", ControllerInput.None),
         Lut = controllerSection.GetLut("LUT")
     });
 }