internal Telescope(IASCOMTelescope isolatedTelescope, float slowestRate, float slowRate, float fastRate) : base(isolatedTelescope) { m_IsolatedTelescope = isolatedTelescope; m_CapabilitiesKnown = false; m_PulseSlowestRate = slowestRate; m_PulseSlowRate = slowRate; m_PulseFastRate = fastRate; if (float.IsNaN(m_PulseSlowestRate)) m_PulseSlowestRate = 1.0f; if (float.IsNaN(m_PulseSlowRate)) m_PulseSlowestRate = 10.0f; if (float.IsNaN(m_PulseFastRate)) m_PulseSlowestRate = 100.0f; }
public void DisconnectTelescope(IASCOMTelescope telescope) { try { if (TraceSwitchASCOMClient.TraceVerbose) Trace.WriteLine(string.Format("OccuRec: ASCOMClient::DisconnectTelescope('{0}')", telescope.UniqueId)); if (telescope.Connected) telescope.Connected = false; } catch (Exception ex) { if (TraceSwitchASCOMClient.TraceError) Trace.WriteLine(ex); } ReleaseDevice(telescope); }