Skip to content

Commit 78e72b9

Browse files
V1.6.29 - Updates
- Added support for Meade 'CM' command
1 parent 1a831f6 commit 78e72b9

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
#include "Globals.h"
1818

19-
String version = "V1.6.29";
19+
String version = "V1.6.30";
2020

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

Software/Arduino code/OpenAstroTracker/f_serial.ino

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
// Returns: nothing
2121
//
2222
//------------------------------------------------------------------
23+
// SYNC CONTROL FAMILY
24+
//
25+
// :CM#
26+
// Synchronize Declination and Right Ascension.
27+
// This tells the scope what it is currently pointing at.
28+
// The scope synchronizes to the current target coordinates (set with :Sd# and :Sr#)
29+
// Returns: NONE#
30+
//
31+
//------------------------------------------------------------------
2332
// GET FAMILY
2433
//
2534
// :GVP#
@@ -207,6 +216,20 @@ void handleMeadeGetInfo(String inCmd) {
207216
}
208217
}
209218

219+
/////////////////////////////
220+
// SYNC CONTROL
221+
/////////////////////////////
222+
void handleMeadeSyncControl(String inCmd) {
223+
if (inCmd[0] == 'M') {
224+
mount.syncDEC(mount.targetDEC().getHours(), mount.targetDEC().getMinutes(), mount.targetDEC().getSeconds(),);
225+
mount.syncRA(mount.targetRA().getHours(), mount.targetRA.getMinutes()(), mount.targetRA().getSeconds());
226+
Serial.print("NONE#");
227+
}
228+
else {
229+
Serial.print("0");
230+
}
231+
}
232+
210233
/////////////////////////////
211234
// SET INFO
212235
/////////////////////////////
@@ -376,12 +399,13 @@ void serialEvent() {
376399
case 'S' : handleMeadeSetInfo(inCmd); break;
377400
case 'M' : handleMeadeMovement(inCmd); break;
378401
case 'G' : handleMeadeGetInfo(inCmd); break;
402+
case 'C' : handleMeadeSyncControl(inCmd); break;
379403
case 'h' : handleMeadeHome(inCmd); break;
380404
case 'I' : handleMeadeInit(inCmd); break;
381405
case 'Q' : handleMeadeQuit(inCmd); break;
382406
}
383407
}
384-
408+
385409
mount.loop();
386410
}
387411
}

0 commit comments

Comments
 (0)