Compare commits

..

2 Commits

Author SHA1 Message Date
ColinD 7759862f79 Upgated version numbers to 0.6.0.1 2019-06-09 15:48:14 +01:00
ColinD 58c75794bc Added check for Ascom platform 6.4 SP 1 or higher. 2019-06-09 15:43:32 +01:00
8 changed files with 15 additions and 27 deletions
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.7.0.0")] [assembly: AssemblyVersion("0.6.0.1")]
[assembly: AssemblyFileVersion("0.7.0.0")] [assembly: AssemblyFileVersion("0.6.0.1")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("0.7.0.0")] [assembly: AssemblyVersion("0.6.0.1")]
[assembly: AssemblyFileVersion("0.7.0.0")] [assembly: AssemblyFileVersion("0.6.0.1")]
+1 -1
View File
@@ -44,5 +44,5 @@
<!-- Set installer version based on the file version of the main assembly. --> <!-- Set installer version based on the file version of the main assembly. -->
<!--<?define ProductVersion="!(bind.FileVersion.filLocalServerAssembly)"?>--> <!--<?define ProductVersion="!(bind.FileVersion.filLocalServerAssembly)"?>-->
<?define ProductVersion="0.7.0.0"?> <?define ProductVersion="0.6.0.1"?>
</Include> </Include>
@@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below: // by using the '*' as shown below:
// //
// TODO - Set your driver's version here // TODO - Set your driver's version here
[assembly: AssemblyVersion("0.7.0.0")] [assembly: AssemblyVersion("0.6.0.1")]
[assembly: AssemblyFileVersion("0.7.0.0")] [assembly: AssemblyFileVersion("0.6.0.1")]
+2 -14
View File
@@ -190,9 +190,6 @@ namespace ASCOM.Meade.net
case "mode": case "mode":
SharedResources.SendBlind(":EK9#"); SharedResources.SendBlind(":EK9#");
break; break;
case "longMode":
SharedResources.SendBlind(":EK11#");
break;
case "goto": case "goto":
SharedResources.SendBlind(":EK24#"); SharedResources.SendBlind(":EK24#");
break; break;
@@ -1451,20 +1448,16 @@ namespace ASCOM.Meade.net
{ {
case "0": case "0":
//We're slewing everything should be working just fine. //We're slewing everything should be working just fine.
tl.LogMessage("DoSlewAsync", "Slewing to target");
break; break;
case "1": case "1":
//Below Horizon //Below Horizon
string belowHorizonMessage = SharedResources.ReadTerminated(); string belowHorizonMessage = SharedResources.ReadTerminated();
tl.LogMessage("DoSlewAsync", $"Slew failed \"{belowHorizonMessage}\"");
throw new ASCOM.InvalidOperationException(belowHorizonMessage); throw new ASCOM.InvalidOperationException(belowHorizonMessage);
case "2": case "2":
//Below Horizon //Below Horizon
string belowMinimumElevationMessage = SharedResources.ReadTerminated(); string belowMinimumElevationMessage = SharedResources.ReadTerminated();
tl.LogMessage("DoSlewAsync", $"Slew failed \"{belowMinimumElevationMessage}\"");
throw new ASCOM.InvalidOperationException(belowMinimumElevationMessage); throw new ASCOM.InvalidOperationException(belowMinimumElevationMessage);
default: default:
tl.LogMessage("DoSlewAsync", $"Slew failed - unknown response \"{response}\"");
throw new ASCOM.DriverException("This error should not happen"); throw new ASCOM.DriverException("This error should not happen");
} }
@@ -1499,8 +1492,6 @@ namespace ASCOM.Meade.net
{ {
utilities.WaitForMilliseconds(200); //be responsive to AbortSlew(); utilities.WaitForMilliseconds(200); //be responsive to AbortSlew();
} }
tl.LogMessage("SlewToCoordinates", $"Slewing completed new coordinates Ra={RightAscension}, Dec={Declination}");
} }
public void SlewToCoordinatesAsync(double rightAscension, double declination) public void SlewToCoordinatesAsync(double rightAscension, double declination)
@@ -1640,12 +1631,9 @@ namespace ASCOM.Meade.net
CheckConnected("TargetDeclination Set"); CheckConnected("TargetDeclination Set");
var dms = utilities.DegreesToDMS(value, "*", ":", ":", 2); var dms = utilities.DegreesToDMS(value, "*", ":", ":", 2);
var s = value < 0 ? string.Empty : "+"; var s = value < 0 ? '-' : '+';
var command = $":Sd{s}{dms}#"; var result = SharedResources.SendChar($":Sd{s}{dms}#");
tl.LogMessage("TargetDeclination Set", $"{command}");
var result = SharedResources.SendChar(command);
//:SdsDD*MM# //:SdsDD*MM#
//Set target object declination to sDD*MM or sDD*MM:SS depending on the current precision setting //Set target object declination to sDD*MM or sDD*MM:SS depending on the current precision setting
//Returns: //Returns:
+2 -2
View File
@@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below: // by using the '*' as shown below:
// //
// TODO - Set your driver's version here // TODO - Set your driver's version here
[assembly: AssemblyVersion("0.7.0.0")] [assembly: AssemblyVersion("0.6.0.1")]
[assembly: AssemblyFileVersion("0.7.0.0")] [assembly: AssemblyFileVersion("0.6.0.1")]
+2 -2
View File
@@ -21,7 +21,7 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// Revision // Revision
// //
[assembly: AssemblyVersion("0.7.0.0")] [assembly: AssemblyVersion("0.6.0.1")]
[assembly: AssemblyFileVersion("0.7.0.0")] [assembly: AssemblyFileVersion("0.6.0.1")]
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("0.7.0.0")] [assembly: AssemblyVersion("0.6.0.1")]
[assembly: AssemblyFileVersion("0.7.0.0")] [assembly: AssemblyFileVersion("0.6.0.1")]