Instrument Neutral Distributed Interface INDI 2.2.5
lx200gps.h
Go to the documentation of this file.
1/*
2 LX200 GPS
3 Copyright (C) 2003 Jasem Mutlaq ([email protected])
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
25class LX200GPS : public LX200Autostar
26{
27 public:
28 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 ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n);
37 virtual bool updateTime(ln_date *utc, double utc_offset);
38
39 protected:
40 virtual bool UnPark();
41
44
47
50
53
56
59
62
65
68
71
73
74 virtual bool saveConfigItems(FILE *fp);
75};
bool updateProperties()
Called when connected state changes, to add/remove properties.
Definition lx200gps.cpp:125
ISwitch OTAUpdateS[1]
Definition lx200gps.h:67
ISwitch SelenSyncS[1]
Definition lx200gps.h:58
ISwitch AltDecBacklashS[1]
Definition lx200gps.h:61
INumberVectorProperty OTATempNP
Definition lx200gps.h:69
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:100
ISwitchVectorProperty AzRaPecSP
Definition lx200gps.h:54
ISwitchVectorProperty AltDecPecSP
Definition lx200gps.h:51
ISwitch AzRaBacklashS[1]
Definition lx200gps.h:64
ISwitchVectorProperty AzRaBacklashSP
Definition lx200gps.h:63
INDI::PropertyNumber GuideRateNP
Definition lx200gps.h:72
ISwitch GPSUpdateS[2]
Definition lx200gps.h:49
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process the client newNumber command.
Definition lx200gps.cpp:400
ISwitchVectorProperty AltDecBacklashSP
Definition lx200gps.h:60
ISwitchVectorProperty GPSStatusSP
Definition lx200gps.h:45
virtual bool UnPark()
Unpark the telescope if already parked.
Definition lx200gps.cpp:421
ISwitchVectorProperty GPSPowerSP
Definition lx200gps.h:42
virtual bool saveConfigItems(FILE *fp)
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
Definition lx200gps.cpp:414
ISwitch AltDecPecS[2]
Definition lx200gps.h:52
ISwitch GPSStatusS[3]
Definition lx200gps.h:46
ISwitch AzRaPecS[2]
Definition lx200gps.h:55
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process the client newSwitch command.
Definition lx200gps.cpp:161
bool initProperties()
Called to initialize basic properties required all the time.
Definition lx200gps.cpp:41
ISwitch GPSPowerS[2]
Definition lx200gps.h:43
ISwitchVectorProperty GPSUpdateSP
Definition lx200gps.h:48
ISwitchVectorProperty OTAUpdateSP
Definition lx200gps.h:66
const char * getDefaultName()
Definition lx200gps.cpp:36
virtual bool updateTime(ln_date *utc, double utc_offset)
Update telescope time, date, and UTC offset.
Definition lx200gps.cpp:359
INumber OTATempN[1]
Definition lx200gps.h:70
~LX200GPS()
Definition lx200gps.h:29
ISwitchVectorProperty SelenSyncSP
Definition lx200gps.h:57
ISState
Switch state.
Definition indiapi.h:148
One number descriptor.
One switch descriptor.
Number vector property descriptor.
Definition indiapi.h:317
Switch vector property descriptor.
Definition indiapi.h:365