Skip to content

Commit 43d84d9

Browse files
V1.7.16 - Updates
- Accommodated LX200 protocol variant that allows spaces in the commands. - Minor comment corrections.
1 parent ac439a8 commit 43d84d9

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

Software/Arduino code/OpenAstroTracker/MeadeCommandProcessor.cpp

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Serial support
99
//
10-
// The Serial protocol implemented her is the Meade protocol with some extensions.
10+
// The Serial protocol implemented here is the Meade LX200 Classic protocol with some extensions.
1111
// The Meade protocol commands start with a colon and end with a hash.
1212
// The first letter determines the family of functions (G for Get, S for Set, M for Movement, etc.)
1313
//
@@ -181,7 +181,6 @@
181181
// :Rs#
182182
// Set Slew rate
183183
// Where s is one of 'S', 'M', 'C', or 'G' in order of decreasing speed
184-
// CURRENTLY IGNORED
185184
// Returns: nothing
186185
//------------------------------------------------------------------
187186
// MOVEMENT FAMILY
@@ -308,19 +307,20 @@
308307
//
309308
// :XSRn#
310309
// Set RA steps
311-
// Set the number of steps the RA stepper motor needs to take to rotate by one degree
310+
// Set the number of steps the RA stepper motor needs to take to rotate by one degree.
312311
// Where n is the number of steps
313312
// Returns: nothing
314313
//
315314
// :XSDn#
316315
// Set DEC steps
317-
// Set the number of steps the DEC stepper motor needs to take to rotate by one degree
316+
// Set the number of steps the DEC stepper motor needs to take to rotate by one degree.
318317
// Where n is the number of steps
319318
// Returns: nothing
320319
//
321-
// :XSSn.n#
320+
// :XSSn.nnn#
322321
// Set Tracking speed adjustment
323322
// Set the adjustment factor used to speed up (>1.0) or slow down (<1.0) the tracking speed of the mount.
323+
// Where n.nnn is the factor to multiply the theoretical speed by.
324324
// Returns: nothing
325325
//
326326
// :XSMn#
@@ -331,12 +331,12 @@
331331
//
332332
// :XSXn.nnn#
333333
// Set RA manual slewing speed
334-
// Set the speed of the RA motor, immediately. Must be in manual slewing mode
334+
// Set the speed of the RA motor, immediately. Must be in manual slewing mode.
335335
// Returns: nothing
336336
//
337337
// :XSYn.nnn#
338338
// Set DEC manual slewing speed
339-
// Set the speed of the DEC motor, immediately.
339+
// Set the speed of the DEC motor, immediately. Must be in manual slewing mode.
340340
// Returns: nothing
341341
//
342342
/////////////////////////////////////////////////////////////////////////////////////////
@@ -799,7 +799,16 @@ String MeadeCommandProcessor::handleMeadeSetSlewRate(String inCmd) {
799799

800800
String MeadeCommandProcessor::processCommand(String inCmd) {
801801
if (inCmd[0] == ':') {
802+
802803
LOGV2(DEBUG_MEADE, "MEADE: Received command '%s'", inCmd.c_str());
804+
805+
// Apparently some LX200 implementations put spaces in their commands..... remove them with impunity.
806+
int spacePos;
807+
while ((spacePos = inCmd.indexOf(' ')) != -1) {
808+
inCmd.remove(spacePos, 1);
809+
}
810+
811+
LOGV2(DEBUG_MEADE, "MEADE: Processing command '%s'", inCmd.c_str());
803812
char command = inCmd[1];
804813
inCmd = inCmd.substring(2);
805814
switch (command) {

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "Globals.hpp"
2020

21-
String version = "V1.7.15";
21+
String version = "V1.7.16";
2222

2323
///////////////////////////////////////////////////////////////////////////
2424
// Please see the Globals.h file for configuration of the firmware.

0 commit comments

Comments
 (0)