Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/guideinterface.h
1 | /* Ekos guide class interface | 1 | /* Ekos guide class interface | ||
---|---|---|---|---|---|
2 | Copyright (C) 2016 Jasem Mutlaq <mutlaqja@ikarustech.com> | 2 | Copyright (C) 2016 Jasem Mutlaq <mutlaqja@ikarustech.com> | ||
3 | 3 | | |||
4 | This application is free software; you can redistribute it and/or | 4 | This application is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU General Public | 5 | modify it under the terms of the GNU General Public | ||
6 | License as published by the Free Software Foundation; either | 6 | License as published by the Free Software Foundation; either | ||
7 | version 2 of the License, or (at your option) any later version. | 7 | version 2 of the License, or (at your option) any later version. | ||
8 | */ | 8 | */ | ||
9 | 9 | | |||
10 | #pragma once | 10 | #pragma once | ||
11 | 11 | | |||
12 | #include "ekos/ekos.h" | 12 | #include "ekos/ekos.h" | ||
13 | 13 | #include "indi/inditelescope.h" | |||
14 | #include <QObject> | 14 | #include <QObject> | ||
15 | #include <QVector3D> | 15 | #include <QVector3D> | ||
16 | 16 | | |||
17 | #include <cstdint> | 17 | #include <cstdint> | ||
18 | 18 | | |||
19 | class QString; | 19 | class QString; | ||
20 | 20 | | |||
21 | namespace Ekos | 21 | namespace Ekos | ||
Show All 31 Lines | 34 | public: | |||
53 | virtual bool getGuiderParams(double *ccdPixelSizeX, double *ccdPixelSizeY, double *mountAperture, | 53 | virtual bool getGuiderParams(double *ccdPixelSizeX, double *ccdPixelSizeY, double *mountAperture, | ||
54 | double *mountFocalLength); | 54 | double *mountFocalLength); | ||
55 | 55 | | |||
56 | virtual bool setFrameParams(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t binX, uint16_t binY); | 56 | virtual bool setFrameParams(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t binX, uint16_t binY); | ||
57 | virtual bool getFrameParams(uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h, uint16_t *binX, uint16_t *binY); | 57 | virtual bool getFrameParams(uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h, uint16_t *binX, uint16_t *binY); | ||
58 | 58 | | |||
59 | virtual void setStarPosition(QVector3D& starCenter); | 59 | virtual void setStarPosition(QVector3D& starCenter); | ||
60 | 60 | | |||
61 | virtual void setMountCoords(const QString &ra, const QString &dec, const QString &az, const QString &alt); | ||||
62 | virtual void setPierSide(ISD::Telescope::PierSide newSide); | ||||
63 | | ||||
61 | enum CalibrationUpdateType | 64 | enum CalibrationUpdateType | ||
62 | { | 65 | { | ||
63 | RA_IN, | 66 | RA_IN, | ||
64 | RA_OUT, | 67 | RA_OUT, | ||
65 | DEC_IN, | 68 | DEC_IN, | ||
66 | DEC_OUT, | 69 | DEC_OUT, | ||
67 | CALIBRATION_MESSAGE_ONLY | 70 | CALIBRATION_MESSAGE_ONLY | ||
68 | }; | 71 | }; | ||
Show All 18 Lines | 86 | protected: | |||
87 | double mountAperture { 0 }; | 90 | double mountAperture { 0 }; | ||
88 | double mountFocalLength { 0 }; | 91 | double mountFocalLength { 0 }; | ||
89 | uint16_t subX { 0 }; | 92 | uint16_t subX { 0 }; | ||
90 | uint16_t subY { 0 }; | 93 | uint16_t subY { 0 }; | ||
91 | uint16_t subW { 0 }; | 94 | uint16_t subW { 0 }; | ||
92 | uint16_t subH { 0 }; | 95 | uint16_t subH { 0 }; | ||
93 | uint16_t subBinX { 1 }; | 96 | uint16_t subBinX { 1 }; | ||
94 | uint16_t subBinY { 1 }; | 97 | uint16_t subBinY { 1 }; | ||
98 | | ||||
99 | // Recent mount position. | ||||
100 | dms mountRA, mountDEC, mountAzimuth, mountAltitude; | ||||
101 | ISD::Telescope::PierSide pierSide { ISD::Telescope::PIER_UNKNOWN }; | ||||
95 | }; | 102 | }; | ||
96 | } | 103 | } |