コード例 #1
0
        /// <summary>
        /// Conctructor
        /// </summary>
        public ObservatoryControls(MainForm MF)
        {
            ParentMainForm=MF;

            CommandParser = new CommandInterpretator();
            InitComandInterpretator();

            ASCOMSwitch = new ObservatoryControls_ASCOMSwitch();
            ASCOMTelescope = new ObservatoryControls_ASCOMTelescope();
            ASCOMDome = new ObservatoryControls_ASCOMDome(ASCOMSwitch);
            ASCOMFocuser = new ObservatoryControls_ASCOMFocuser();

            objBoltwoodControl = new ObservatoryControls_boltwood();

            objIQPEngine = new IQPEngine(new IQPEngine.CallBackFunction(ParentMainForm.IQP_PublishFITSData)); //with callbackfunction


            //for debug
            //SWITCH_DRIVER_NAME = "SwitchSim.Switch";
            //DOME_DRIVER_NAME = "ASCOM.Simulator.Dome";
            //TELESCOPE_DRIVER_NAME = "EQMOD_SIM.Telescope";

            //objMaxim = new MaximControls(ParentMainForm);
        }
コード例 #2
0
 /// <summary>
 /// Constructor 1 variant. Without any reference to external SWITCH OBJECT
 /// </summary>
 public ObservatoryControls_ASCOMDome(ObservatoryControls_ASCOMSwitch ExtASCOMSiwitch)
 {
     ExtASCOMSiwitchObj = ExtASCOMSiwitch;
 }