public void ToProfile() { using (Profile profile = new Profile()) { profile.DeviceType = "Telescope"; profile.WriteValue(DriverID, _telescopeIDProfileName, TelescopeID); profile.WriteValue(DriverID, _traceStateProfileName, IsLoggingEnabled.ToString()); profile.WriteValue(DriverID, _fastUpdateProfileName, FastUpdatePeriod.ToString()); } }
public void ToProfile() { using (Profile profile = new Profile()) { profile.DeviceType = "Focuser"; profile.WriteValue(DriverID, _focuserIDProfileName, FocuserID); profile.WriteValue(DriverID, _temperatureOffsetProfileName, TemperatureOffset.ToString(CultureInfo.InvariantCulture)); profile.WriteValue(DriverID, _traceStateProfileName, IsLoggingEnabled.ToString()); profile.WriteValue(DriverID, _fastUpdateProfileName, FastUpdatePeriod.ToString(CultureInfo.InvariantCulture)); } }
public void ToProfile() { using (Profile profile = new Profile()) { profile.DeviceType = "Dome"; profile.WriteValue(DriverID, _domeIDProfileName, DomeID); profile.WriteValue(DriverID, _xOffsetProfileName, DomeLayout.DomeScopeOffset.X.ToString()); profile.WriteValue(DriverID, _yOffsetProfileName, DomeLayout.DomeScopeOffset.Y.ToString()); profile.WriteValue(DriverID, _zOffsetProfileName, DomeLayout.DomeScopeOffset.Z.ToString()); profile.WriteValue(DriverID, _radiusProfileName, DomeLayout.DomeRadius.ToString()); profile.WriteValue(DriverID, _gemAxisOffsetProfileName, DomeLayout.GemAxisOffset.ToString()); profile.WriteValue(DriverID, _azimuthAccuracyProfileName, DomeLayout.AzimuthAccuracy.ToString()); profile.WriteValue(DriverID, _azimuthAdjustmentProfileName, AzimuthAdjustment.ToString()); profile.WriteValue(DriverID, _slaveIntervalProfileName, DomeLayout.SlaveInterval.ToString()); profile.WriteValue(DriverID, _traceStateProfileName, IsLoggingEnabled.ToString()); profile.WriteValue(DriverID, _usePOTHSlavingCalculationProfileName, UsePOTHDomeSlaveCalculation.ToString()); profile.WriteValue(DriverID, _FindHomeAtStartupProfileName, FindDomeHomeAtStartup.ToString()); } }