1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*
LX200 Basic Driver
Copyright (C) 2005 Jasem Mutlaq (mutlaqja@ikarustech.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "inditelescope.h"
class LXD650 : public INDI::Telescope
{
public:
LXD650();
~LXD650() override = default;
virtual const char *getDefaultName() override;
virtual bool Handshake() override;
virtual bool ReadScopeStatus() override;
virtual bool initProperties() override;
virtual bool updateProperties() override;
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override;
protected:
virtual bool Abort() override;
virtual bool Goto(double, double) override;
virtual bool Sync(double ra, double dec) override;
virtual void debugTriggered(bool enable) override;
virtual bool saveConfigItems(FILE *fp) override;
void getBasicData();
protected:
bool isSlewComplete();
void slewError(int slewCode);
void mountSim();
INumber SlewAccuracyN[2];
INumberVectorProperty SlewAccuracyNP;
double targetRA = 0, targetDEC = 0;
double currentRA = 0, currentDEC = 0;
uint32_t DBG_SCOPE = 0;
};
|