Skip to content

Commit ee9bbc9

Browse files
V1.6.20 - Updates
- Added some missing Serial commands for the ASCOM driver (Unpark, SlewSync, and GetSlewing)
1 parent 07a88aa commit ee9bbc9

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
=======================================================================================================================================
33
4-
Version 1.6.19
4+
Version 1.6.20
55
66
1. Connect your Arduino, under tools choose "Arduino Uno", set the right Port and set "Arduino ISP" as the Programmer.
77
2. Hit upload (Ctrl-U)
@@ -16,7 +16,7 @@
1616
*/
1717
#include "Globals.h"
1818

19-
String version = "V1.6.19";
19+
String version = "V1.6.20";
2020

2121
///////////////////////////////////////////////////////////////////////////
2222
// Please see the Globals.h file for configuration of the firmware.

Software/Arduino code/OpenAstroTracker/f_serial.ino

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ void handleMeadeGetInfo(String inCmd) {
4646
Serial.print(mount.DECString(MEADE_STRING | CURRENT_STRING));
4747
}
4848
break;
49+
50+
case 'I': {
51+
if (cmdTwo == 'S') {
52+
Serial.print(mount.isSlewingRAorDEC() ? "1" : "0");
53+
}
54+
Serial.print("0");
55+
}
56+
break;
4957
}
5058
}
5159

@@ -107,7 +115,7 @@ void handleMeadeSetInfo(String inCmd) {
107115
}
108116
}
109117
else {
110-
Serial.print("0");
118+
Serial.print("0");
111119
}
112120
}
113121

@@ -116,8 +124,11 @@ void handleMeadeSetInfo(String inCmd) {
116124
/////////////////////////////
117125
void handleMeadeMovement(String inCmd) {
118126
if (inCmd[0] == 'S') {
119-
Serial.print("0");
120127
mount.startSlewingToTarget();
128+
if ((inCmd.length() > 1) && (inCmd[1] == 'y')) {
129+
mount.waitUntilStopped(ALL_DIRECTIONS); // Excludes TRK
130+
}
131+
Serial.print("1");
121132
}
122133
}
123134

@@ -133,6 +144,10 @@ void handleMeadeHome(String inCmd) {
133144
mount.stopSlewing(TRACKING);
134145
Serial.print("1");
135146
}
147+
else if (inCmd[0] == 'U') { // Unpark
148+
mount.startSlewing(TRACKING);
149+
Serial.print("1");
150+
}
136151
}
137152

138153
/////////////////////////////

0 commit comments

Comments
 (0)