summaryrefslogtreecommitdiffstats
path: root/indi-lxd650/lxd650.h
diff options
context:
space:
mode:
Diffstat (limited to 'indi-lxd650/lxd650.h')
-rw-r--r--indi-lxd650/lxd650.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/indi-lxd650/lxd650.h b/indi-lxd650/lxd650.h
new file mode 100644
index 0000000..ea6b144
--- /dev/null
+++ b/indi-lxd650/lxd650.h
@@ -0,0 +1,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;
+};