From 888ab1aa46019797da9ba2daddbed9878264a632 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Sat, 12 Nov 2022 20:50:48 +0000 Subject: [PATCH] Added LX800 series to scope as an autostar II based telescope. --- Meade.net.Telescope/Telescope.cs | 14 ++++++++++++-- Meade.net/TelescopeList.cs | 7 +++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index 099d64d..be7a241 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -582,6 +582,7 @@ namespace ASCOM.Meade.net { case TelescopeList.LX200GPS: case TelescopeList.RCX400: + case TelescopeList.LX800: { LogMessage("SendTimeTimeToHandbox", $"{SharedResourcesWrapper.ProductName} Detecting if daylight savings message on screen: {_profileProperties.SendDateTime}"); @@ -655,7 +656,8 @@ namespace ASCOM.Meade.net { case TelescopeList.LX200GPS: case TelescopeList.RCX400: - { + case TelescopeList.LX800: + { var displayText = Action("Handbox", "readdisplay"); if (displayText.Contains("Daylight")) @@ -725,6 +727,7 @@ namespace ASCOM.Meade.net case TelescopeList.Autostar497: return FirmwareIsGreaterThan(TelescopeList.Autostar497_31Ee); case TelescopeList.LX200GPS: + case TelescopeList.LX800: return true; case TelescopeList.RCX400: return FirmwareIsGreaterThan(TelescopeList.RCX400_22I); @@ -756,6 +759,7 @@ namespace ASCOM.Meade.net { case TelescopeList.LX200GPS: case TelescopeList.RCX400: + case TelescopeList.LX800: return true; default: return false; @@ -771,6 +775,8 @@ namespace ASCOM.Meade.net case TelescopeList.Audiostar: case TelescopeList.Autostar497: return FirmwareIsGreaterThan(TelescopeList.Autostar497_43Eg); + case TelescopeList.LX800: + return FirmwareIsGreaterThan(TelescopeList.LX800_11i); case TelescopeList.LX200GPS: return FirmwareIsGreaterThan(TelescopeList.LX200GPS_42G); case TelescopeList.RCX400: @@ -1243,6 +1249,7 @@ namespace ASCOM.Meade.net { case TelescopeList.LX200GPS: case TelescopeList.RCX400: + case TelescopeList.LX800: return GetRealTelescopeAltitude(); default: var altAz = CalcAltAzFromTelescopeEqData(); @@ -1409,6 +1416,7 @@ namespace ASCOM.Meade.net { case TelescopeList.LX200GPS: case TelescopeList.RCX400: + case TelescopeList.LX800: return GetRealTelescopeAzimuth(); default: var altAz = CalcAltAzFromTelescopeEqData(); @@ -1769,7 +1777,8 @@ namespace ASCOM.Meade.net { TelescopeList.LX200GPS, TelescopeList.RCX400, - TelescopeList.LX200CLASSIC + TelescopeList.LX200CLASSIC, + TelescopeList.LX800 }; return unParkableScopes.Contains(SharedResourcesWrapper.ProductName); @@ -3869,6 +3878,7 @@ namespace ASCOM.Meade.net { case TelescopeList.RCX400: case TelescopeList.LX200GPS: + case TelescopeList.LX800: SharedResourcesWrapper.SendChar(Tl, "I"); //:I# LX200 GPS Only - Causes the telescope to cease current operations and restart at its power on initialization. //Returns: X once the handset restart has completed diff --git a/Meade.net/TelescopeList.cs b/Meade.net/TelescopeList.cs index 59514cd..9cac51c 100644 --- a/Meade.net/TelescopeList.cs +++ b/Meade.net/TelescopeList.cs @@ -31,6 +31,13 @@ public const string LX200GPS_42G = "4.2g"; #endregion + #region LX800 + public const string LX800 = "LX800"; + + public const string LX800_11i = "1.1i"; + + #endregion + #region LX200EMC // ReSharper disable once InconsistentNaming public const string LX200CLASSIC = "LX200 Classic"; //GVP command is not supported!