Added support for a warning when the telescope could hit the mount. (older command used by the Meade CSD prior to the LX200 command set.)

This commit is contained in:
2020-05-24 16:38:30 +01:00
parent 3e00398af0
commit bd8476e11a
+6 -1
View File
@@ -1868,10 +1868,15 @@ namespace ASCOM.Meade.net
LogMessage("DoSlewAsync", $"Slew failed \"{belowHorizonMessage}\"");
throw new InvalidOperationException(belowHorizonMessage);
case "2":
//Below Horizon
//Below minimum elevation
string belowMinimumElevationMessage = _sharedResourcesWrapper.ReadTerminated();
LogMessage("DoSlewAsync", $"Slew failed \"{belowMinimumElevationMessage}\"");
throw new InvalidOperationException(belowMinimumElevationMessage);
case "3":
//Telescope can hit the mount
string canHistMountMessage = _sharedResourcesWrapper.ReadTerminated();
LogMessage("DoSlewAsync", $"Slew failed \"{canHistMountMessage}\"");
throw new InvalidOperationException(canHistMountMessage);
default:
LogMessage("DoSlewAsync", $"Slew failed - unknown response \"{response}\"");
throw new DriverException("This error should not happen");