Instrument Neutral Distributed Interface INDI  1.9.5
lx200ss2000pc.h
Go to the documentation of this file.
1 /*
2  SkySensor2000 PC
3  Copyright (C) 2015 Camiel Severijns
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 "lx200generic.h"
24 
26 {
27  public:
28  LX200SS2000PC(void);
29 
30  virtual const char *getDefaultName(void) override;
31  virtual bool initProperties() override;
32  virtual bool updateProperties() override;
33  virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override;
34 
35  protected:
36  virtual void getBasicData(void) override;
37  virtual bool isSlewComplete(void) override;
38 
39  virtual bool ReadScopeStatus() override;
40 
41  virtual bool saveConfigItems(FILE *fp) override;
42 
43  virtual bool updateTime(ln_date *utc, double utc_offset) override;
44  virtual bool updateLocation(double latitude, double longitude, double elevation) override;
45  virtual bool setUTCOffset(double offset) override;
46 
47  // Parking
48  virtual bool SetCurrentPark() override;
49  virtual bool SetDefaultPark() override;
50  virtual bool Park() override;
51  virtual bool UnPark() override;
52 
53  private:
54  bool getCalendarDate(int &year, int &month, int &day);
55  bool setCalenderDate(int year, int month, int day);
56 
57  int setSiteLongitude(int fd, double Long);
58  int setSiteLatitude(int fd, double Long);
59 
60  INumber SlewAccuracyN[2];
61  INumberVectorProperty SlewAccuracyNP;
62 
63  static const int ShortTimeOut;
64  static const int LongTimeOut;
65 };
66 
LX200SS2000PC::updateLocation
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
Definition: lx200ss2000pc.cpp:252
LX200Generic
Definition: lx200generic.h:25
LX200SS2000PC::updateProperties
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
Definition: lx200ss2000pc.cpp:66
fd
int fd
Definition: indiserver.c:117
INumber
One number descriptor.
LX200SS2000PC::isSlewComplete
virtual bool isSlewComplete(void) override
Definition: lx200ss2000pc.cpp:165
LX200SS2000PC::getDefaultName
virtual const char * getDefaultName(void) override
Definition: lx200ss2000pc.cpp:113
LX200SS2000PC::Park
virtual bool Park() override
Park the telescope to its home position.
Definition: lx200ss2000pc.cpp:318
lx200generic.h
LX200SS2000PC::setUTCOffset
virtual bool setUTCOffset(double offset) override
Definition: lx200ss2000pc.cpp:238
LX200SS2000PC::ReadScopeStatus
virtual bool ReadScopeStatus() override
Read telescope status.
Definition: lx200ss2000pc.cpp:442
_INumberVectorProperty
Number vector property descriptor.
Definition: indiapi.h:317
LX200SS2000PC::saveConfigItems
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
Definition: lx200ss2000pc.cpp:104
LX200SS2000PC::updateTime
virtual bool updateTime(ln_date *utc, double utc_offset) override
Update telescope time, date, and UTC offset.
Definition: lx200ss2000pc.cpp:118
LX200SS2000PC::ISNewNumber
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
Definition: lx200ss2000pc.cpp:82
LX200SS2000PC::initProperties
virtual bool initProperties() override
Called to initialize basic properties required all the time.
Definition: lx200ss2000pc.cpp:52
LX200SS2000PC::getBasicData
virtual void getBasicData(void) override
Definition: lx200ss2000pc.cpp:157
LX200SS2000PC::UnPark
virtual bool UnPark() override
Unpark the telescope if already parked.
Definition: lx200ss2000pc.cpp:362
name
const char * name
Definition: indiserver.c:116
LX200SS2000PC::LX200SS2000PC
LX200SS2000PC(void)
Definition: lx200ss2000pc.cpp:38
LX200SS2000PC
Definition: lx200ss2000pc.h:25
LX200SS2000PC::SetDefaultPark
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
Definition: lx200ss2000pc.cpp:431
LX200SS2000PC::SetCurrentPark
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
Definition: lx200ss2000pc.cpp:411