Skip to content

Commit

Permalink
Fully revert telescope simulator to version 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Simpson committed Aug 23, 2023
1 parent b444e39 commit eb8af41
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ private void BrowseToAscom(object sender, EventArgs e)

#region Properties for Settings

public short InterfaceVersion
{
get { return (short)NumInterfaceVersion.Value; }
set { NumInterfaceVersion.Value = value; }
}

public int EquatorialSystem
{
get { return int.Parse(comboBoxEquatorialSystem.SelectedValue.ToString(), CultureInfo.CurrentCulture); }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ static TelescopeHardware()
s_Profile.WriteValue(SharedResources.PROGRAM_ID, "CanDestinationSideOfPier", "true", "Capabilities");
s_Profile.WriteValue(SharedResources.PROGRAM_ID, "CanTrackingRates", "true", "Capabilities");
s_Profile.WriteValue(SharedResources.PROGRAM_ID, "CanDualAxisPulseGuide", "true", "Capabilities");
s_Profile.WriteValue(SharedResources.PROGRAM_ID, "InterfaceVersion", "4", "Capabilities");
s_Profile.WriteValue(SharedResources.PROGRAM_ID, "InterfaceVersion", "3", "Capabilities");
}

//Load up the values from saved
Expand Down Expand Up @@ -667,7 +667,7 @@ static TelescopeHardware()

dateDelta = int.Parse(s_Profile.GetValue(SharedResources.PROGRAM_ID, "DateDelta"), CultureInfo.InvariantCulture);

interfaceVersion = short.Parse(s_Profile.GetValue(SharedResources.PROGRAM_ID, "InterfaceVersion", "", "4"), CultureInfo.InvariantCulture);
interfaceVersion = short.Parse(s_Profile.GetValue(SharedResources.PROGRAM_ID, "InterfaceVersion", "", "3"), CultureInfo.InvariantCulture);

if (latitude < 0) { SouthernHemisphere = true; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public void DoSetupDialog()
setupForm.Longitude = TelescopeHardware.Longitude;
setupForm.MaximumSlewRate = TelescopeHardware.MaximumSlewRate;
setupForm.NoSyncPastMeridian = TelescopeHardware.NoSyncPastMeridian;
setupForm.InterfaceVersion = TelescopeHardware.InterfaceVersion;
this.BringToFront();
DialogResult ans = setupForm.ShowDialog(this);

Expand Down Expand Up @@ -120,7 +119,6 @@ public void DoSetupDialog()
TelescopeHardware.Longitude = setupForm.Longitude;
TelescopeHardware.MaximumSlewRate = setupForm.MaximumSlewRate;
TelescopeHardware.NoSyncPastMeridian = setupForm.NoSyncPastMeridian;
TelescopeHardware.InterfaceVersion=setupForm.InterfaceVersion;

this.TopMost = setupForm.OnTop;
}
Expand Down

0 comments on commit eb8af41

Please sign in to comment.