source: BAORadio/libindi/v1/drivers/telescope/lx200ap.h @ 612

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

import libindi (JEC)

File size: 2.2 KB
Line 
1/*
2    LX200 Astro-Physics INDI driver
3
4    Copyright (C) 2007 Markus Wildi
5
6    This library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Lesser General Public
8    License as published by the Free Software Foundation; either
9    version 2.1 of the License, or (at your option) any later version.
10
11    This library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15
16    You should have received a copy of the GNU Lesser General Public
17    License along with this library; if not, write to the Free Software
18    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
20*/
21
22#ifndef LX200ASTROPHYSICS_H
23#define LX200ASTROPHYSICS_H
24
25#include "lx200generic.h"
26/* thisDevice is not defined with the global section property definitions.*/
27/* So I use this macro throught the lx200ap.cpp */
28/* even one can use thisDevice e.g. in function call like IDMessage( thisDevice,...)*/
29/* That may collide with what is defined in lx200generic.cpp */
30#define myapdev "LX200 Astro-Physics"
31
32#define DOMECONTROL 0
33#define NOTDOMECONTROL  1
34
35#define SYNCCM  0
36#define SYNCCMR 1
37
38#define NOTESTABLISHED 0
39#define    ESTABLISHED 1
40#define MOUNTNOTINITIALIZED 0
41#define MOUNTINITIALIZED 1
42
43class LX200AstroPhysics : public LX200Generic
44{
45 public:
46  LX200AstroPhysics();
47  ~LX200AstroPhysics() {}
48
49 void ISGetProperties (const char *dev);
50 void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n);
51 void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n);
52 void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n);
53 void ISSnoopDevice (XMLEle *root) ;
54 void ISPoll ();
55 int  setBasicDataPart0();
56 int  setBasicDataPart1();
57 void connectTelescope();
58 void setupTelescope();
59 void handleAltAzSlew();
60 void handleAZCoordSet() ;
61 void handleEqCoordSet() ;
62 void ISInit() ;
63 bool isMountInit(void) ;
64 private:
65
66 enum LX200_STATUS { LX200_SLEW, LX200_TRACK, LX200_SYNC, LX200_PARK };
67
68};
69
70void changeLX200AstroPhysicsDeviceName(const char *newName);
71#endif
72 
Note: See TracBrowser for help on using the repository browser.