Skip to content

Commit

Permalink
Added guide active status
Browse files Browse the repository at this point in the history
  • Loading branch information
hjd1964 committed Jul 1, 2021
1 parent db74076 commit 2841b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ void processCommands() {
if (atHome) reply[i++]='H'; // at [H]ome
if (ppsSynced) reply[i++]='S'; // PPS [S]ync
if (isPulseGuiding()) reply[i++]='G'; // pulse [G]uide active
if (guideDirAxis1 || guideDirAxis2) reply[i++]='g'; // [g]uide active
#if MOUNT_TYPE != ALTAZM
if (rateCompensation == RC_REFR_RA) { reply[i++]='r'; reply[i++]='s'; } // [r]efr enabled [s]ingle axis
if (rateCompensation == RC_REFR_BOTH) { reply[i++]='r'; } // [r]efr enabled
Expand Down Expand Up @@ -782,6 +783,7 @@ void processCommands() {
}

if (syncToEncodersOnly) reply[1]|=0b10000100; // sync to encoders only
if (guideDirAxis1 || guideDirAxis2) reply[1]|=0b10001000; // guide active
if (atHome) reply[2]|=0b10000001; // At home
if (waitingHome) reply[2]|=0b10000010; // Waiting at home
if (pauseHome) reply[2]|=0b10000100; // Pause at home enabled?
Expand Down

0 comments on commit 2841b8e

Please sign in to comment.