From 710ae0420ab385d2b2c8d82462de4df957b91cfa Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Thu, 9 Sep 2021 12:14:15 +0100 Subject: [PATCH] Added left, right as sysonyms of back and forward for the handbox commands. Added scrollup and scrolldown handbox commands as well. --- Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs | 4 ++++ Meade.net.Telescope/Telescope.cs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs index 175c060..2180770 100644 --- a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs +++ b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs @@ -246,6 +246,10 @@ namespace Meade.net.Telescope.UnitTests [TestCase("down", "EK118")] [TestCase("back", "EK87")] [TestCase("forward", "EK69")] + [TestCase("left", "EK87")] + [TestCase("right", "EK69")] + [TestCase("scrollup", "EK85")] + [TestCase("scrolldown", "EK68")] [TestCase("?", "EK63")] public void Action_Handbox_WhenCalling_ThenSendsAppropriateBlindCommands(string action, string expectedString) { diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index b39c1e0..f35dfcc 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -249,11 +249,19 @@ namespace ASCOM.Meade.net SharedResourcesWrapper.SendBlind("EK118"); break; case "back": + case "left": SharedResourcesWrapper.SendBlind("EK87"); break; case "forward": + case "right": SharedResourcesWrapper.SendBlind("EK69"); break; + case "scrollup": + SharedResourcesWrapper.SendBlind("EK85"); + break; + case "scrolldown": + SharedResourcesWrapper.SendBlind("EK68"); + break; case "?": SharedResourcesWrapper.SendBlind("EK63"); break;