source: BAORadio/libindi/v1/drivers/telescope/celestrongps.h@ 689

Last change on this file since 689 was 490, checked in by campagne, 15 years ago

import libindi (JEC)

File size: 1.8 KB
Line 
1/*
2 Celestron GPS
3 Copyright (C) 2003 Jasem Mutlaq (mutlaqja@ikarustech.com)
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 CELESTRONGPS_H
22#define CELESTRONGPS_H
23
24#include "indidevapi.h"
25#include "indicom.h"
26
27#define POLLMS 1000 /* poll period, ms */
28
29class CelestronGPS
30{
31 public:
32 CelestronGPS();
33 virtual ~CelestronGPS() {}
34
35 virtual void ISGetProperties (const char *dev);
36 virtual void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n);
37 virtual void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n);
38 virtual void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n);
39 virtual void ISPoll ();
40 virtual void getBasicData();
41
42 int checkPower(INumberVectorProperty *np);
43 int checkPower(ISwitchVectorProperty *sp);
44 int checkPower(ITextVectorProperty *tp);
45 void connectTelescope();
46 void slewError(int slewCode);
47 int handleCoordSet();
48 int getOnSwitch(ISwitchVectorProperty *sp);
49
50 private:
51 int timeFormat;
52
53 double lastRA;
54 double lastDEC;
55
56 int lastSet;
57 int currentSet;
58};
59
60#endif
61
Note: See TracBrowser for help on using the repository browser.