New Park routine for the LX-200 Classic, uses the same technique as the 5.0.4 driver.
This commit is contained in:
@@ -1398,7 +1398,6 @@ namespace ASCOM.Meade.net
|
|||||||
{
|
{
|
||||||
CheckConnected("CanUnpark");
|
CheckConnected("CanUnpark");
|
||||||
|
|
||||||
//todo make this return false for non LX-200 GPS telescopes
|
|
||||||
LogMessage("CanUnpark", "Get - " + true);
|
LogMessage("CanUnpark", "Get - " + true);
|
||||||
return SharedResourcesWrapper.ProductName == TelescopeList.LX200GPS;
|
return SharedResourcesWrapper.ProductName == TelescopeList.LX200GPS;
|
||||||
}
|
}
|
||||||
@@ -1740,12 +1739,21 @@ namespace ASCOM.Meade.net
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Setting park to true before sending the park command as the Autostar and Audiostar stop serial communications once the park command has been issued.
|
if (SharedResourcesWrapper.ProductName != TelescopeList.LX200CLASSIC)
|
||||||
SharedResourcesWrapper.SetParked(true, parkedPosition);
|
{
|
||||||
SharedResourcesWrapper.SendBlind("hP");
|
SharedResourcesWrapper.SendBlind("hP");
|
||||||
//:hP# Autostar, Autostar II and LX 16" Slew to Park Position
|
//:hP# Autostar, Autostar II and LX 16" Slew to Park Position
|
||||||
//Returns: Nothing
|
//Returns: Nothing
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Tracking = false;
|
||||||
|
SlewToCoordinates(parkedPosition.RightAscension, parkedPosition.Declination);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Setting park to true before sending the park command as the Autostar and Audiostar stop serial communications once the park command has been issued.
|
||||||
|
SharedResourcesWrapper.SetParked(true, parkedPosition);
|
||||||
|
}
|
||||||
|
|
||||||
private bool _userNewerPulseGuiding = true;
|
private bool _userNewerPulseGuiding = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user