Skip to content

Commit 8b27d84

Browse files
V1.7.19 - Updates
- Added support for the :D# Meade protocol command
1 parent 227c8d4 commit 8b27d84

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Software/Arduino code/OpenAstroTracker/MeadeCommandProcessor.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
// Returns: NONE#
3333
//
3434
//------------------------------------------------------------------
35+
// DISTANCE FAMILY
36+
//
37+
// :D#
38+
// Returns slewing status
39+
// Returns: '|#' if slewing, ' #' if not
40+
//
41+
//------------------------------------------------------------------
3542
// GET FAMILY
3643
//
3744
// :GVP#
@@ -660,6 +667,13 @@ String MeadeCommandProcessor::handleMeadeHome(String inCmd) {
660667
return "";
661668
}
662669

670+
String MeadeCommandProcessor::handleMeadeDistance(String inCmd) {
671+
if (_mount->isSlewingRAorDEC()){
672+
return "|#";
673+
}
674+
return " #";
675+
}
676+
663677
/////////////////////////////
664678
// EXTRA COMMANDS
665679
/////////////////////////////
@@ -828,6 +842,7 @@ String MeadeCommandProcessor::processCommand(String inCmd) {
828842
case 'I': return handleMeadeInit(inCmd);
829843
case 'Q': return handleMeadeQuit(inCmd);
830844
case 'R': return handleMeadeSetSlewRate(inCmd);
845+
case 'D': return handleMeadeDistance(inCmd);
831846
case 'X': return handleMeadeExtraCommands(inCmd);
832847
default:
833848
LOGV2(DEBUG_MEADE, "MEADE: Received unknown command '%s'", inCmd.c_str());

Software/Arduino code/OpenAstroTracker/MeadeCommandProcessor.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class MeadeCommandProcessor
1919
String handleMeadeHome(String inCmd);
2020
String handleMeadeInit(String inCmd);
2121
String handleMeadeQuit(String inCmd);
22+
String handleMeadeDistance(String inCmd);
2223
String handleMeadeSetSlewRate(String inCmd);
2324
String handleMeadeExtraCommands(String inCmd);
2425
Mount* _mount;

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.18";
21+
String version = "V1.7.19";
2222

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

0 commit comments

Comments
 (0)