コード例 #1
0
        private bool ConnectDome()
        {
            SerialConnection = new ArduinoSerial();
            SerialConnection.CommandQueueReady += new ArduinoSerial.CommandQueueReadyEventHandler(SerialConnection_CommandQueueReady);
            HC.WaitForMilliseconds(2000);

            return(true);
        }
コード例 #2
0
 private bool ConnectDome()
 {
     SerialConnection = new ArduinoSerial();
     SerialConnection.CommandQueueReady += new ArduinoSerial.CommandQueueReadyEventHandler(SerialConnection_CommandQueueReady);
     HC.WaitForMilliseconds(2000);
     SerialConnection.SendCommand(ArduinoSerial.SerialCommand.SetPark, Config.ParkAzimuth);
     SerialConnection.SendCommand(ArduinoSerial.SerialCommand.SetHome, Config.HomeAzimuth);
     return(true);
 }
コード例 #3
0
ファイル: Driver.cs プロジェクト: imclab/Arduino-Focuser
        public bool ConnectFocuser()
        {
            SerialConnection = new ArduinoSerial();
            SerialConnection.CommandQueueReady += new ArduinoSerial.CommandQueueReadyEventHandler(SerialConnection_CommandQueueReady);

            HC.WaitForMilliseconds(2000);

            ReverseMotorDirection(this.Config.Reversed);
            SetPositionOnFocuser(this.Config.Position);

            if (this.Config.UseFocuserControlBox)
            {
                FocuserControl.Show();
            }

            return(true);
        }
コード例 #4
0
        public bool ConnectFocuser()
        {
            SerialConnection = new ArduinoSerial();
            SerialConnection.CommandQueueReady += new ArduinoSerial.CommandQueueReadyEventHandler(SerialConnection_CommandQueueReady);

            HC.WaitForMilliseconds(2000);

            ReverseMotorDirection(this.Config.Reversed);
            SetPositionOnFocuser(this.Config.Position);

            if(this.Config.UseFocuserControlBox)
                FocuserControl.Show();

            return true;
        }
コード例 #5
0
        private bool ConnectDome()
        {
            SerialConnection = new ArduinoSerial();
            SerialConnection.CommandQueueReady += new ArduinoSerial.CommandQueueReadyEventHandler(SerialConnection_CommandQueueReady);
            HC.WaitForMilliseconds(2000);

            return true;
        }