Instrument Neutral Distributed Interface INDI 2.2.5
lx200ss2000pc.h
Go to the documentation of this file.
1/*
2 SkySensor2000 PC
3 Copyright (C) 2015 Camiel Severijns
4 Copyright (C) 2025 Jasem Mutlaq
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
20*/
21
22#pragma once
23
24#include "lx200generic.h"
25
27{
28 public:
29 LX200SS2000PC(void);
30
31 virtual const char *getDefaultName(void) override;
32 virtual bool initProperties() override;
33 virtual bool updateProperties() override;
34 virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override;
35
36 protected:
37 virtual void getBasicData(void) override;
38 virtual bool isSlewComplete(void) override;
39
40 virtual bool Goto(double ra, double dec) override;
41 virtual bool Sync(double ra, double dec) override;
42 virtual bool ReadScopeStatus() override;
43
44 virtual bool saveConfigItems(FILE *fp) override;
45
46 virtual bool updateTime(ln_date *utc, double utc_offset) override;
47 virtual bool updateLocation(double latitude, double longitude, double elevation) override;
48 virtual bool setUTCOffset(double offset) override;
49
50 // Parking
51 virtual bool SetCurrentPark() override;
52 virtual bool SetDefaultPark() override;
53 virtual bool Park() override;
54 virtual bool UnPark() override;
55
56 private:
57 bool getCalendarDate(int &year, int &month, int &day);
58 bool setCalenderDate(int year, int month, int day);
59
60 int setSiteLongitude(int fd, double Long);
61 int setSiteLatitude(int fd, double Long);
62
63 INumber SlewAccuracyN[2];
64 INumberVectorProperty SlewAccuracyNP;
65
66 static const int ShortTimeOut;
67 static const int LongTimeOut;
68};
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 Goto(double ra, double dec) override
Move the scope to the supplied RA and DEC coordinates.
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.
virtual bool Sync(double ra, double dec) override
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
double ra
double dec
int fd
One number descriptor.
Number vector property descriptor.
Definition indiapi.h:317