| 1 | /*
|
|---|
| 2 | LX200 AP Driver
|
|---|
| 3 | Copyright (C) 2007 Markus Wildi
|
|---|
| 4 |
|
|---|
| 5 | This library is free software; you can redistribute it and/or
|
|---|
| 6 | modify it under the terms of the GNU Lesser General Public
|
|---|
| 7 | License as published by the Free Software Foundation; either
|
|---|
| 8 | version 2.1 of the License, or (at your option) any later version.
|
|---|
| 9 |
|
|---|
| 10 | This library is distributed in the hope that it will be useful,
|
|---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 13 | Lesser General Public License for more details.
|
|---|
| 14 |
|
|---|
| 15 | You should have received a copy of the GNU Lesser General Public
|
|---|
| 16 | License along with this library; if not, write to the Free Software
|
|---|
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|---|
| 18 |
|
|---|
| 19 | */
|
|---|
| 20 |
|
|---|
| 21 | #ifndef LX200APDRIVER_H
|
|---|
| 22 | #define LX200APDRIVER_H
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #define getAPDeclinationAxis(fd, x) getCommandString(fd, x, "#:pS#")
|
|---|
| 26 | #define getAPVersionNumber(fd, x) getCommandString(fd, x, "#:V#")
|
|---|
| 27 | #define setAPPark( fd) write(fd, "#:KA", 4)
|
|---|
| 28 | #define setAPUnPark( fd) write(fd, "#:PO", 4)
|
|---|
| 29 | #define setAPLongFormat( fd) write(fd, "#:U", 3)
|
|---|
| 30 | #define setAPClearBuffer( fd) write(fd, "#", 1) /* AP key pad manual startup sequence */
|
|---|
| 31 | #define setAPBackLashCompensation(fd, x,y,z) setCommandXYZ(fd, x,y,z, "#:Br")
|
|---|
| 32 | #define setAPMotionStop( fd) write(fd, "#:Q", 3)
|
|---|
| 33 |
|
|---|
| 34 | #ifdef __cplusplus
|
|---|
| 35 | extern "C" {
|
|---|
| 36 | #endif
|
|---|
| 37 |
|
|---|
| 38 | int check_lx200ap_connection(int fd) ;
|
|---|
| 39 | int initializeAPmount(int fd) ;
|
|---|
| 40 | int getAPUTCOffset (int fd, double *value) ;
|
|---|
| 41 | int setAPObjectAZ(int fd, double az);
|
|---|
| 42 | int setAPObjectAlt(int fd, double alt);
|
|---|
| 43 | int setAPUTCOffset(int fd, double hours) ;
|
|---|
| 44 | int setAPSlewMode(int fd, int slewMode) ;
|
|---|
| 45 | int APSyncCM(int fd, char *matchedObject) ;
|
|---|
| 46 | int APSyncCMR(int fd, char *matchedObject) ;
|
|---|
| 47 | int selectAPMoveToRate(int fd, int moveToRate) ;
|
|---|
| 48 | int selectAPSlewRate(int fd, int slewRate) ;
|
|---|
| 49 | int selectAPTrackingMode(int fd, int trackMode) ;
|
|---|
| 50 | int swapAPButtons(int fd, int currentSwap) ;
|
|---|
| 51 | int setAPObjectRA(int fd, double ra) ;
|
|---|
| 52 | int setAPObjectDEC(int fd, double dec) ;
|
|---|
| 53 | int setAPSiteLongitude(int fd, double Long) ;
|
|---|
| 54 | int setAPSiteLatitude(int fd, double Lat) ;
|
|---|
| 55 |
|
|---|
| 56 | #ifdef __cplusplus
|
|---|
| 57 | }
|
|---|
| 58 | #endif
|
|---|