|
85 | 85 | // :GX#
|
86 | 86 | // Get Mount Status
|
87 | 87 | // Returns: string reflecting the mounts' status. The string is a comma-delimited list of statuses:
|
88 |
| -// Idle,--T,11219,0,927,071906,+900000,# |
89 |
| -// | | | | | | | |
90 |
| -// | | | | | | | |
91 |
| -// | | | | | | | |
92 |
| -// | | | | | | +------------------ [6] The current DEC position |
93 |
| -// | | | | | +------------------------- [5] The current RA position |
94 |
| -// | | | | +------------------------------- [4] The Tracking stepper position |
95 |
| -// | | | +---------------------------------- [3] The DEC stepper position |
96 |
| -// | | +-------------------------------------- [2] The RA stepper position |
97 |
| -// | +------------------------------------------- [1] The motion state. |
98 |
| -// | First character is RA slewing state ('R' is East, 'r' is West, '-' is stopped). |
99 |
| -// | Second character is DEC slewing state ('d' is North, 'D' is South, '-' is stopped). |
100 |
| -// | Third character is TRK slewing state ('T' is Tracking, '-' is stopped). |
101 |
| -// +----------------------------------------------- [0] The mount status. One of 'Idle', 'Parked', 'Parking', 'Guiding', 'SlewToTarget', 'FreeSlew', 'ManualSlew', 'Tracking' |
| 88 | +// Idle,--T--,11219,0,927,071906,+900000,# |
| 89 | +// | | | | | | | |
| 90 | +// | | | | | | | |
| 91 | +// | | | | | | | |
| 92 | +// | | | | | | +------------------ [6] The current DEC position |
| 93 | +// | | | | | +------------------------- [5] The current RA position |
| 94 | +// | | | | +------------------------------- [4] The Tracking stepper position |
| 95 | +// | | | +---------------------------------- [3] The DEC stepper position |
| 96 | +// | | +-------------------------------------- [2] The RA stepper position |
| 97 | +// | +-------------------------------------------- [1] The motion state. |
| 98 | +// | First character is RA slewing state ('R' is East, 'r' is West, '-' is stopped). |
| 99 | +// | Second character is DEC slewing state ('d' is North, 'D' is South, '-' is stopped). |
| 100 | +// | Third character is TRK slewing state ('T' is Tracking, '-' is stopped). |
| 101 | +// | * Fourth character is AZ slewing state ('Z' and 'z' is adjusting, '-' is stopped). |
| 102 | +// | * Fifth character is ALT slewing state ('A' and 'a' is adjusting, '-' is stopped). |
| 103 | +// +------------------------------------------------- [0] The mount status. One of 'Idle', 'Parked', 'Parking', 'Guiding', 'SlewToTarget', 'FreeSlew', 'ManualSlew', 'Tracking', 'Homing' |
| 104 | +// |
| 105 | +// * Az and Alt are optional. The string may only be 3 characters long |
| 106 | +// |
102 | 107 | //
|
103 | 108 | // : Gt#
|
104 | 109 | // Get Site Latitude
|
|
217 | 222 | // Where c is one of 'n', 'e', 'w', or 's'.
|
218 | 223 | // Returns: nothing
|
219 | 224 | //
|
| 225 | +// :MAZn.nn# |
| 226 | +// Move Azimuth |
| 227 | +// If the scope supports automated azimuth operation, move azimuth by n.nn arcminutes |
| 228 | +// Where n.nn is a signed floating point number representing the number of arcminutes to move the mount left or right. |
| 229 | +// Returns: nothing |
| 230 | +// |
| 231 | +// :MALn.nn# |
| 232 | +// Move Altitude |
| 233 | +// If the scope supports automated altitude operation, move altitude by n.nn arcminutes |
| 234 | +// Where n.nn is a signed floating point number representing the number of arcminutes to raise or lower the mount. |
| 235 | +// Returns: nothing |
| 236 | +// |
220 | 237 | //------------------------------------------------------------------
|
221 | 238 | // SYNC FAMILY
|
222 | 239 | //
|
@@ -636,6 +653,18 @@ String MeadeCommandProcessor::handleMeadeMovement(String inCmd) {
|
636 | 653 | return "1";
|
637 | 654 | }
|
638 | 655 | }
|
| 656 | + else if (inCmd[0] == 'A') { |
| 657 | + // Move Azimuth or Altitude by given arcminutes |
| 658 | + // :MAZ+32.1# or :MAL-32.1# |
| 659 | + float arcMinute = inCmd.substring(2).toFloat(); |
| 660 | + if (inCmd[1] == 'Z'){ |
| 661 | + _mount->moveBy(AZIMUTH_STEPS, arcMinute); |
| 662 | + } |
| 663 | + else if (inCmd[1] == 'L'){ |
| 664 | + _mount->moveBy(ALTITUDE_STEPS, arcMinute); |
| 665 | + } |
| 666 | + return ""; |
| 667 | + } |
639 | 668 | else if (inCmd[0] == 'e') {
|
640 | 669 | _mount->startSlewing(EAST);
|
641 | 670 | return "";
|
|
0 commit comments