Instrument Neutral Distributed Interface INDI  2.0.2
lx200gps.h
Go to the documentation of this file.
1 /*
2  LX200 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 #pragma once
22 
23 #include "lx200autostar.h"
24 
25 class LX200GPS : public LX200Autostar
26 {
27  public:
28  LX200GPS();
29  ~LX200GPS() {}
30 
31  const char *getDefaultName();
32  bool initProperties();
33  bool updateProperties();
34  void ISGetProperties(const char *dev);
35  bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n);
36  virtual bool updateTime(ln_date *utc, double utc_offset);
37 
38  protected:
39  virtual bool UnPark();
40 
43 
46 
49 
52 
55 
58 
61 
64 
67 
70 };
bool updateProperties()
Called when connected state changes, to add/remove properties.
Definition: lx200gps.cpp:117
ISwitch OTAUpdateS[1]
Definition: lx200gps.h:66
ISwitch SelenSyncS[1]
Definition: lx200gps.h:57
ISwitch AltDecBacklashS[1]
Definition: lx200gps.h:60
INumberVectorProperty OTATempNP
Definition: lx200gps.h:68
void ISGetProperties(const char *dev)
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
Definition: lx200gps.cpp:92
ISwitchVectorProperty AzRaPecSP
Definition: lx200gps.h:53
ISwitchVectorProperty AltDecPecSP
Definition: lx200gps.h:50
ISwitch AzRaBacklashS[1]
Definition: lx200gps.h:63
ISwitchVectorProperty AzRaBacklashSP
Definition: lx200gps.h:62
ISwitch GPSUpdateS[2]
Definition: lx200gps.h:48
ISwitchVectorProperty AltDecBacklashSP
Definition: lx200gps.h:59
ISwitchVectorProperty GPSStatusSP
Definition: lx200gps.h:44
virtual bool UnPark()
Unpark the telescope if already parked.
Definition: lx200gps.cpp:390
ISwitchVectorProperty GPSPowerSP
Definition: lx200gps.h:41
LX200GPS()
Definition: lx200gps.cpp:30
ISwitch AltDecPecS[2]
Definition: lx200gps.h:51
ISwitch GPSStatusS[3]
Definition: lx200gps.h:45
ISwitch AzRaPecS[2]
Definition: lx200gps.h:54
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process the client newSwitch command.
Definition: lx200gps.cpp:151
bool initProperties()
Called to initialize basic properties required all the time.
Definition: lx200gps.cpp:40
ISwitch GPSPowerS[2]
Definition: lx200gps.h:42
ISwitchVectorProperty GPSUpdateSP
Definition: lx200gps.h:47
ISwitchVectorProperty OTAUpdateSP
Definition: lx200gps.h:65
const char * getDefaultName()
Definition: lx200gps.cpp:35
virtual bool updateTime(ln_date *utc, double utc_offset)
Update telescope time, date, and UTC offset.
Definition: lx200gps.cpp:349
INumber OTATempN[1]
Definition: lx200gps.h:69
~LX200GPS()
Definition: lx200gps.h:29
ISwitchVectorProperty SelenSyncSP
Definition: lx200gps.h:56
ISState
Switch state.
Definition: indiapi.h:150
One number descriptor.
One switch descriptor.
Number vector property descriptor.
Definition: indiapi.h:319
Switch vector property descriptor.
Definition: indiapi.h:367