Added check to ensure that telescope is in Polar Mode when attempting to PulseGuide. CanPulseGuide also fails when scope is in AltAz mode.

This commit is contained in:
2022-05-05 20:40:51 +01:00
parent f788320927
commit 503eec38a3
2 changed files with 43 additions and 6 deletions
+7 -2
View File
@@ -1274,8 +1274,10 @@ namespace ASCOM.Meade.net
{
get
{
LogMessage("CanPulseGuide", "Get - " + true);
return true;
CheckConnected("CanPulseGuide");
var canPulseGuide = AlignmentMode != AlignmentModes.algAltAz;
LogMessage("CanPulseGuide", $"Get - {canPulseGuide}");
return canPulseGuide;
}
}
@@ -1759,6 +1761,9 @@ namespace ASCOM.Meade.net
if (IsSlewingToTarget())
throw new InvalidOperationException("Unable to PulseGuide whilst slewing to target.");
if (AlignmentMode == AlignmentModes.algAltAz)
throw new InvalidOperationException("Unable to PulseGuide whilst in AltAz mode.");
SharedResourcesWrapper.IsGuiding = true;
try
{