diff --git a/MeadeAutostar497/AscomClasses/Telescope.cs b/MeadeAutostar497/AscomClasses/Telescope.cs index 9892ea6..d17efa0 100644 --- a/MeadeAutostar497/AscomClasses/Telescope.cs +++ b/MeadeAutostar497/AscomClasses/Telescope.cs @@ -956,15 +956,15 @@ namespace ASCOM.MeadeAutostar497 { get { - tl.LogMessage("Absolute Get", true.ToString()); - return true; // This is an absolute focuser + tl.LogMessage("Absolute Get", false.ToString()); + return false; // This is an absolute focuser } } public void Halt() { - tl.LogMessage("Halt", "Not implemented"); - throw new ASCOM.MethodNotImplementedException("Halt"); + tl.LogMessage("Halt", "Halting"); + _telescopeController.FocuserHalt(); } public bool IsMoving diff --git a/MeadeAutostar497/Controller/FirmwareVersion.cs b/MeadeAutostar497/Controller/FirmwareVersion.cs new file mode 100644 index 0000000..bdd0976 --- /dev/null +++ b/MeadeAutostar497/Controller/FirmwareVersion.cs @@ -0,0 +1,34 @@ +namespace ASCOM.MeadeAutostar497.Controller +{ + enum FirmwareVersion + { + autostar497_30eb, + autostar497_30ed, + autostar497_30ee, + autostar497_31ee, + autostar497_32ea, + //PEC added for Polar mounted scopes + + autostar497_32ee, + autostar497_32eh, + //Some serial strings fixed. + + autostar497_32ei, + autostar497_33ef, + //Some serial strings fixed. + + autostar497_33el, + autostar497_40eb, + autostar497_40ee, + autostar497_40ef, + autostar497_41ec, + autostar497_42ed, + //Get serial command for daylight savings (:GH# returns 0 for disabled 1 for enabled) + //Set serial command for daylight savings (:SH0# disables, :SH1# enables) + + autostar497_43ea, + autostar497_43ed, + autostar497_43eg + //Added :GW#, :AL#, :AA#, & :AP# + } +} \ No newline at end of file diff --git a/MeadeAutostar497/Controller/ITelescopeController.cs b/MeadeAutostar497/Controller/ITelescopeController.cs index 06698ea..bcc7b23 100644 --- a/MeadeAutostar497/Controller/ITelescopeController.cs +++ b/MeadeAutostar497/Controller/ITelescopeController.cs @@ -32,5 +32,6 @@ namespace ASCOM.MeadeAutostar497.Controller void SlewToTarget(); void SlewToTargetAsync(); void MoveAxis(TelescopeAxes axis, double rate); + void FocuserHalt(); } } \ No newline at end of file diff --git a/MeadeAutostar497/Controller/TelescopeController.cs b/MeadeAutostar497/Controller/TelescopeController.cs index db3916d..ffa83a9 100644 --- a/MeadeAutostar497/Controller/TelescopeController.cs +++ b/MeadeAutostar497/Controller/TelescopeController.cs @@ -800,6 +800,13 @@ namespace ASCOM.MeadeAutostar497.Controller } } + public void FocuserHalt() + { + SerialPort.Command(":FQ#"); + //:FQ# Halt Focuser Motion + //Returns: Nothing + } + //todo remove the polar parameter and split method into two. private void DoSlewAsync( bool polar) { diff --git a/MeadeAutostar497/MeadeAutostar497.csproj b/MeadeAutostar497/MeadeAutostar497.csproj index 6de6351..5109500 100644 --- a/MeadeAutostar497/MeadeAutostar497.csproj +++ b/MeadeAutostar497/MeadeAutostar497.csproj @@ -89,6 +89,7 @@ + diff --git a/MeadeAutostar497/Properties/AssemblyInfo.cs b/MeadeAutostar497/Properties/AssemblyInfo.cs index 2a06abf..a4133d1 100644 --- a/MeadeAutostar497/Properties/AssemblyInfo.cs +++ b/MeadeAutostar497/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // by using the '*' as shown below: // // TODO - Set your driver's version here -[assembly: AssemblyVersion("0.0.0.0")] -[assembly: AssemblyFileVersion("0.0.0.0")] +[assembly: AssemblyVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.0.0")]