Skip to content

Commit

Permalink
Add extended feature for MoveAxis.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkcheng89 committed Nov 6, 2021
1 parent c3564e0 commit 19775f2
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 39 deletions.
9 changes: 5 additions & 4 deletions Driver.Starbook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ public Response GetVersion(out string version)
/// [+] USER (User Presses MENU)
/// [*] GOTO: Slewing (1) or Not Slewing (0)
/// </param>
/// <param name="extended">Extend the format of Right Ascension and Declination</param>
/// <param name="extendedRA">Extend the format of Right Ascension</param>
/// <param name="extendedDEC">Extend the format of Declination</param>
/// <returns>Response string: OK or ERROR:%</returns>
///
public Response GetStatus(out Status status, bool extended = false)
public Response GetStatus(out Status status, bool extendedRA = false, bool extendedDEC = false)
{
status = new Status(); Response response = this.Handshake("GETSTATUS", out Dictionary<string, string> dictionary);

Expand All @@ -103,15 +104,15 @@ public Response GetStatus(out Status status, bool extended = false)
{
case "RA":
{
if (HMS.TryParse(item.Value, out HMS ra, extended))
if (HMS.TryParse(item.Value, out HMS ra, extendedRA))
{
status.RA = ra; statusRA = true;
}
break;
}
case "DEC":
{
if (DMS.TryParse(item.Value, out DMS dec, extended))
if (DMS.TryParse(item.Value, out DMS dec, extendedDEC))
{
status.Dec = dec; statusDEC = true;
}
Expand Down
Loading

0 comments on commit 19775f2

Please sign in to comment.