Skip to content

Commit

Permalink
V1.1.3.0 Updates
Browse files Browse the repository at this point in the history
Use Autohoming settings when talking to OAT
  • Loading branch information
ClutchplateDude committed Jun 3, 2024
1 parent b4244f6 commit 2c5bbf2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions OATControl/DlgAppSettings.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ private void OnCloseClick(object sender, RoutedEventArgs e)
AppSettings.Instance.AutoHomeRaDistance = RaDistance;
AppSettings.Instance.AutoHomeDecDirection = DecStartSouth ? "South" : "North";
AppSettings.Instance.AutoHomeDecDistance = DecDistance;
AppSettings.Instance.Save();
_mount.AutoHomeDecDirection = AppSettings.Instance.AutoHomeDecDirection;
_mount.AutoHomeRaDirection = AppSettings.Instance.AutoHomeRaDirection;
_mount.AutoHomeDecDistance = AppSettings.Instance.AutoHomeDecDistance;
_mount.AutoHomeRaDistance = AppSettings.Instance.AutoHomeRaDistance;
_mount.SavePointsOfInterest();
Close();
}
Expand Down
2 changes: 1 addition & 1 deletion OATControl/OATControl Setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "OATControl"
#define MyAppVersion "1.1.2.0"
#define MyAppVersion "1.1.3.0"
#define MyAppPublisher "OpenAstroTech"
#define MyAppURL "https://wiki.openastrotech.com/"
#define MyAppExeName "OATControl.exe"
Expand Down
4 changes: 2 additions & 2 deletions OATControl/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.2.0")]
[assembly: AssemblyFileVersion("1.1.2.0")]
[assembly: AssemblyVersion("1.1.3.0")]
[assembly: AssemblyFileVersion("1.1.3.0")]
4 changes: 4 additions & 0 deletions OATControl/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Revision History
----------------

OATControl V1.1.3.0 2 June 2024
- Actually send (and save) the direction and distance set in settings
for Autohoming to OAT.

OATControl V1.1.2.0 11 May 2024
- Inverted DEC Parking Offset (park/unpark) for OAT

Expand Down
8 changes: 5 additions & 3 deletions OATControl/ViewModels/MountVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,15 @@ public string CustomAction4ResultStatus
public void OnAutoHomeRA()
{
string dir = AutoHomeRaDirection == "East" ? "R" : "L";
string dist = AutoHomeRaDistance.ToString("0.0");
_oatMount.SendCommand($":MHRR#,n", (a) => { });
string dist = AutoHomeRaDistance.ToString("0");
_oatMount.SendCommand($":MHR{dir}{dist}#,n", (a) => { });
}

public void OnAutoHomeDEC()
{
_oatMount.SendCommand($":MHDU#,n", (a) => { });
string dir = AutoHomeDecDirection == "South" ? "D" : "U";
string dist = AutoHomeDecDistance.ToString("0");
_oatMount.SendCommand($":MHD{dir}{dist}#,n", (a) => { });
}


Expand Down

0 comments on commit 2c5bbf2

Please sign in to comment.