File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
Software/Arduino code/OpenAstroTracker Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
=======================================================================================================================================
3
3
4
- Version 1.6.19
4
+ Version 1.6.20
5
5
6
6
1. Connect your Arduino, under tools choose "Arduino Uno", set the right Port and set "Arduino ISP" as the Programmer.
7
7
2. Hit upload (Ctrl-U)
16
16
*/
17
17
#include " Globals.h"
18
18
19
- String version = " V1.6.19 " ;
19
+ String version = " V1.6.20 " ;
20
20
21
21
// /////////////////////////////////////////////////////////////////////////
22
22
// Please see the Globals.h file for configuration of the firmware.
Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ void handleMeadeGetInfo(String inCmd) {
46
46
Serial.print (mount.DECString (MEADE_STRING | CURRENT_STRING));
47
47
}
48
48
break ;
49
+
50
+ case ' I' : {
51
+ if (cmdTwo == ' S' ) {
52
+ Serial.print (mount.isSlewingRAorDEC () ? " 1" : " 0" );
53
+ }
54
+ Serial.print (" 0" );
55
+ }
56
+ break ;
49
57
}
50
58
}
51
59
@@ -107,7 +115,7 @@ void handleMeadeSetInfo(String inCmd) {
107
115
}
108
116
}
109
117
else {
110
- Serial.print (" 0" );
118
+ Serial.print (" 0" );
111
119
}
112
120
}
113
121
@@ -116,8 +124,11 @@ void handleMeadeSetInfo(String inCmd) {
116
124
// ///////////////////////////
117
125
void handleMeadeMovement (String inCmd) {
118
126
if (inCmd[0 ] == ' S' ) {
119
- Serial.print (" 0" );
120
127
mount.startSlewingToTarget ();
128
+ if ((inCmd.length () > 1 ) && (inCmd[1 ] == ' y' )) {
129
+ mount.waitUntilStopped (ALL_DIRECTIONS); // Excludes TRK
130
+ }
131
+ Serial.print (" 1" );
121
132
}
122
133
}
123
134
@@ -133,6 +144,10 @@ void handleMeadeHome(String inCmd) {
133
144
mount.stopSlewing (TRACKING);
134
145
Serial.print (" 1" );
135
146
}
147
+ else if (inCmd[0 ] == ' U' ) { // Unpark
148
+ mount.startSlewing (TRACKING);
149
+ Serial.print (" 1" );
150
+ }
136
151
}
137
152
138
153
// ///////////////////////////
You can’t perform that action at this time.
0 commit comments