Removing the attmpt to get the LX200 to park

This commit is contained in:
2024-11-12 18:29:32 +00:00
parent 44c59d1a55
commit 5b050c45c6
+5 -26
View File
@@ -1520,8 +1520,9 @@ namespace ASCOM.Meade.net
{
try
{
LogMessage("CanPark", "Get - " + true);
return true;
var canPark = SharedResourcesWrapper.ProductName != TelescopeList.LX200CLASSIC;
LogMessage("CanPark", "Get - " + canPark);
return canPark;
}
catch (Exception ex)
{
@@ -2289,30 +2290,8 @@ namespace ASCOM.Meade.net
}
else
{
LogMessage("Park", $"Calculating Park Alt Az");
//var siteLatitude = SiteLatitude;
//var parkAlt = AlignmentMode == AlignmentModes.algAltAz ? 0 : 90 - siteLatitude;
//var parkAz = siteLatitude >= 0 ? 180 : 0;
var parkAlt = 0;
var parkAz = 180;
var eq = _astroMaths.ConvertHozToEq(UTCDate, SiteLatitude, SiteLongitude, new HorizonCoordinates()
{
Altitude = parkAlt,
Azimuth = parkAz
});
LogMessage("Park", $"Slewing to park position az:{parkAz} alt:{parkAlt}");
SlewToCoordinates( eq.RightAscension, eq.Declination);
LogMessage("Park", $"Arrived at park position");
LogMessage("Park", $"Parking LX200 Classic");
Tracking = false;
LogMessage("Park", $"Making sure the scope is pointed to the correct Alt Az.");
parkAlt = 0;
parkAz = 180;
SlewToAltAz( parkAz, parkAlt, false);
LogMessage("Park", $"LX200 Classic does not support parking");
throw new NotImplementedException("Park");
}
//Setting park to true before sending the park command as the Autostar and Audiostar stop serial communications once the park command has been issued.