11#include "kstarslite/skypointlite.h"
12#include "kstarslite/skyobjectlite.h"
30 Q_PROPERTY(
bool slewDecreasable READ isSlewDecreasable WRITE setSlewDecreasable NOTIFY slewDecreasableChanged)
31 Q_PROPERTY(
bool slewIncreasable READ isSlewIncreasable WRITE setSlewIncreasable NOTIFY slewIncreasableChanged)
32 Q_PROPERTY(
QString slewRateLabel READ getSlewRateLabel WRITE setSlewRateLabel NOTIFY slewRateLabelChanged)
33 Q_PROPERTY(
QString deviceName READ getDeviceName WRITE setDeviceName NOTIFY deviceNameChanged)
40 enum TelescopeMotionNS
45 enum TelescopeMotionWE
50 enum TelescopeMotionCommand
60 void registerProperty(INDI::Property prop);
61 void processSwitch(ISwitchVectorProperty *svp);
62 void processText(ITextVectorProperty *tvp);
63 void processNumber(INumberVectorProperty *nvp);
65 INDI::BaseDevice *getDevice() {
return baseDevice; }
67 QString getDeviceName() {
return m_deviceName; }
68 void setDeviceName(
const QString &deviceName);
70 bool isSlewDecreasable() {
return m_slewDecreasable; }
71 bool isSlewIncreasable() {
return m_slewIncreasable; }
73 QString getSlewRateLabel() {
return m_slewRateLabel; }
75 void setSlewDecreasable(
bool slewDecreasable);
76 void setSlewIncreasable(
bool slewIncreasable);
78 void setSlewRateLabel(
const QString &slewRateLabel);
86 bool slew(
double ra,
double dec);
89 bool sync(
double ra,
double dec);
90 Q_INVOKABLE bool moveNS(TelescopeMotionNS dir, TelescopeMotionCommand cmd);
91 Q_INVOKABLE bool moveWE(TelescopeMotionWE dir, TelescopeMotionCommand cmd);
100 bool getEqCoords(
double *ra,
double *dec);
101 void setAltLimits(
double minAltitude,
double maxAltitude);
102 Q_INVOKABLE bool isConnected() {
return baseDevice->isConnected(); }
106 bool sendCoords(
SkyPoint *ScopeTarget);
112 bool setSlewRate(
int index);
113 void updateSlewRate(
const QString &deviceName,
const QString &propName);
116 void slewDecreasableChanged(
bool);
117 void slewIncreasableChanged(
bool);
118 void slewRateLabelChanged(
QString);
119 void deviceNameChanged(
QString);
121 void slewRateUpdate(
int index,
int count);
127 bool IsParked {
false };
129 INDI::BaseDevice *baseDevice {
nullptr };
130 int slewRateIndex { 0 };
132 bool m_slewDecreasable {
false };
133 bool m_slewIncreasable {
false };
Wrapper for SkyPoint to allow access of some of its properties from QML.
Q_INVOKABLE SkyPoint * getPoint()
The sky coordinates of a point in the sky.
device handle controlling telescope.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.