Skip to content

Commit

Permalink
Prism fix for empty DecTarget on first slew.
Browse files Browse the repository at this point in the history
Moveaxis fix for dec moves shutting of tracking.
Version changed to 1.0.5.7
  • Loading branch information
rmorgan001 committed Apr 21, 2023
1 parent fe4cf53 commit a79333c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<Trademark>GS Server</Trademark>
<NeutralLanguage>en</NeutralLanguage>
<Copyright>Copyright © GreenSwamp Software 2019-2023</Copyright>
<AssemblyVersion>1.0.5.6</AssemblyVersion>
<FileVersion>1.0.5.6</FileVersion>
<ProductVersion>1.0.5.6</ProductVersion>
<Version>1.0.5.6</Version>
<AssemblyVersion>1.0.5.7</AssemblyVersion>
<FileVersion>1.0.5.7</FileVersion>
<ProductVersion>1.0.5.7</ProductVersion>
<Version>1.0.5.7</Version>
</PropertyGroup>
</Project>
18 changes: 11 additions & 7 deletions GS.Server/SkyTelescope/SkyServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -765,20 +765,20 @@ public static double RateMoveAxisDec
_rateMoveAxes.Y = value;
if (Math.Abs(value) > 0)
{
if (Tracking){_MoveAxisPrevTracking = true;}
Tracking = false;
//if (Tracking){_MoveAxisPrevTracking = true;}
//Tracking = false;
IsSlewing = true;
SlewState = SlewType.SlewMoveAxis;
}
else
{
IsSlewing = false;
SlewState = SlewType.SlewNone;
if (_MoveAxisPrevTracking)
{
Tracking = true;
_MoveAxisPrevTracking = false;
}
//if (_MoveAxisPrevTracking)
//{
// Tracking = true;
// _MoveAxisPrevTracking = false;
//}
}

object _;
Expand Down Expand Up @@ -4020,6 +4020,10 @@ private static bool MountConnect()
{ Datetime = HiResDateTime.UtcNow, Device = MonitorDevice.Server, Category = MonitorCategory.Mount, Type = MonitorType.Information, Method = MethodBase.GetCurrentMethod()?.Name, Thread = Thread.CurrentThread.ManagedThreadId, Message = $"Pec: {pecmsg}" };
MonitorLog.LogToMonitor(monitorItem);

//set Ra Dec targets to current location
_targetRaDec.X = RightAscension;
_targetRaDec.Y = Declination;

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion GS.SkyWatcher/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private void GetStepsPerRevolution(AxisId axis)
response = CmdToMount(axis, 'X', "0002"); //0x02(’02’): Resolution of the axis (Counts per revolution)
var gearRatio = String32ToInt(response, true, _resolutionFactor[(int) axis]);
msg = "X0002";
switch (axis)
switch (axis)
{
case AxisId.Axis1:
_stepsPerRev[0] = gearRatio;
Expand Down
8 changes: 4 additions & 4 deletions Resources/Installer/GreenSwampSetup.iss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; Script generated by the ASCOM Driver Installer Script Generator 6.2.0.0
; Generated by Robert Morgan on 5/20/2018 (UTC)
#define MyAppVersion "1.0.5.6"
#define ManualName "GSS Manual v1056.pdf"
#define VersionNumber "v1056"
#define InstallerBaseName "ASCOMGSServer1056Setup"
#define MyAppVersion "1.0.5.7"
#define ManualName "GSS Manual v1057.pdf"
#define VersionNumber "v1057"
#define InstallerBaseName "ASCOMGSServer1057Setup"
#define MyAppName "GSServer"
#define MyAppExeName "GS.Server.exe"

Expand Down

0 comments on commit a79333c

Please sign in to comment.