// // Constructor - Must be public for COM registration! // public Telescope() { m_AxisRates = new AxisRates[3]; m_AxisRates[0] = new AxisRates(TelescopeAxes.axisPrimary); m_AxisRates[1] = new AxisRates(TelescopeAxes.axisSecondary); m_AxisRates[2] = new AxisRates(TelescopeAxes.axisTertiary); m_TrackingRates = new TrackingRates(); profile.DeviceType = "Telescope"; try { this.comPort = profile.GetValue(ASCOM.Arduino.Telescope.s_csDriverID, "ComPort"); } catch { this.comPort = null; } SerialConnection = new ASCOM.Utilities.Serial(); SerialConnection.PortName = this.comPort; SerialConnection.StopBits = SerialStopBits.One; SerialConnection.Parity = SerialParity.None; SerialConnection.Speed = SerialSpeed.ps9600; }