source: BAORadio/libindi/v1.0.1/drivers/telescope/lx200apdriver.h @ 614

Last change on this file since 614 was 490, checked in by campagne, 14 years ago

import libindi (JEC)

File size: 2.2 KB
Line 
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
35extern "C" {
36#endif
37
38int check_lx200ap_connection(int fd) ;
39int initializeAPmount(int fd) ;
40int getAPUTCOffset (int fd, double *value) ;
41int setAPObjectAZ(int fd, double az);
42int setAPObjectAlt(int fd, double alt);
43int setAPUTCOffset(int fd, double hours) ;
44int setAPSlewMode(int fd, int slewMode) ;
45int APSyncCM(int fd, char *matchedObject) ;
46int APSyncCMR(int fd, char *matchedObject) ;
47int selectAPMoveToRate(int fd, int moveToRate) ;
48int selectAPSlewRate(int fd, int slewRate) ;
49int selectAPTrackingMode(int fd, int trackMode) ;
50int swapAPButtons(int fd, int currentSwap) ;
51int setAPObjectRA(int fd, double ra) ;
52int setAPObjectDEC(int fd, double dec) ;
53int setAPSiteLongitude(int fd, double Long) ;
54int setAPSiteLatitude(int fd, double Lat) ;
55
56#ifdef __cplusplus
57}
58#endif
Note: See TracBrowser for help on using the repository browser.