/// <summary> /// Initializes a new instance of the <see cref="DiSEqCMotor"/> class. /// </summary> /// <param name="controller">The controller.</param> public DiSEqCMotor(IDiSEqCController controller) { try { _configFilesDir = PathManager.GetDataPath; _configFile = _configFilesDir + "\\dish.xml"; if (File.Exists(_configFile)) { Log.Log.Info("DiSEqCMotor: dish Config: loading {0}", _configFile); } else { Log.Log.Debug("DiSEqCMotor: dish Config: file not found, {0}", _configFile); } Xml xmlreader = new Xml(_configFile); { _satCount = xmlreader.GetValueAsInt("SatCount", "Count", 0) + 1; _currentMovingDish = xmlreader.GetValueAsInt("General", "CurrentMovingDish", 100); _firstTuneWait = xmlreader.GetValueAsInt("General", "FirstTuneWait", 200); } Log.Log.Info("DiSEqCMotor: dish Config: SatCount {0}, CurrentMovingDish {1}, FirstTuneWait {2}", _satCount - 1, _currentMovingDish, _firstTuneWait); } catch (Exception ex) { Log.Log.Write(ex); } _controller = controller; }
/// <summary> /// Initializes a new instance of the <see cref="DiSEqCMotor"/> class. /// </summary> /// <param name="controller">The controller.</param> public DiSEqCMotor(IDiSEqCController controller) { _controller = controller; }