Added left, right as sysonyms of back and forward for the handbox commands.

Added scrollup and scrolldown handbox commands as well.
This commit is contained in:
2021-09-09 12:14:15 +01:00
parent 2a6b74c6fd
commit 710ae0420a
2 changed files with 12 additions and 0 deletions
@@ -246,6 +246,10 @@ namespace Meade.net.Telescope.UnitTests
[TestCase("down", "EK118")] [TestCase("down", "EK118")]
[TestCase("back", "EK87")] [TestCase("back", "EK87")]
[TestCase("forward", "EK69")] [TestCase("forward", "EK69")]
[TestCase("left", "EK87")]
[TestCase("right", "EK69")]
[TestCase("scrollup", "EK85")]
[TestCase("scrolldown", "EK68")]
[TestCase("?", "EK63")] [TestCase("?", "EK63")]
public void Action_Handbox_WhenCalling_ThenSendsAppropriateBlindCommands(string action, string expectedString) public void Action_Handbox_WhenCalling_ThenSendsAppropriateBlindCommands(string action, string expectedString)
{ {
+8
View File
@@ -249,11 +249,19 @@ namespace ASCOM.Meade.net
SharedResourcesWrapper.SendBlind("EK118"); SharedResourcesWrapper.SendBlind("EK118");
break; break;
case "back": case "back":
case "left":
SharedResourcesWrapper.SendBlind("EK87"); SharedResourcesWrapper.SendBlind("EK87");
break; break;
case "forward": case "forward":
case "right":
SharedResourcesWrapper.SendBlind("EK69"); SharedResourcesWrapper.SendBlind("EK69");
break; break;
case "scrollup":
SharedResourcesWrapper.SendBlind("EK85");
break;
case "scrolldown":
SharedResourcesWrapper.SendBlind("EK68");
break;
case "?": case "?":
SharedResourcesWrapper.SendBlind("EK63"); SharedResourcesWrapper.SendBlind("EK63");
break; break;