Instrument Neutral Distributed Interface INDI  2.0.2
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 
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual void getBasicData(void) override
virtual const char * getDefaultName(void) override
virtual bool setUTCOffset(double offset) override
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual bool updateTime(ln_date *utc, double utc_offset) override
Update telescope time, date, and UTC offset.
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool Park() override
Park the telescope to its home position.
virtual bool ReadScopeStatus() override
Read telescope status.
virtual bool isSlewComplete(void) override
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
int fd
Definition: intelliscope.c:43
One number descriptor.
Number vector property descriptor.
Definition: indiapi.h:319