| 1 | #cxx . . $ `<file>/drivers/telescope/eq500x.h`/if 0 |
| 2 | LX200 - based Omegon EQ500X Equatorial Mount |
| 3 | |
| 4 | Copyright (C) 2019 Eric Dejouhanet ([email protected]) |
| 5 | |
| 6 | This library is free software; |
| 7 | you can redistribute it and / or |
| 8 | modify it under the terms of the GNU Lesser General Public |
| 9 | License as published by the Free Software Foundation; |
| 10 | either |
| 11 | version 2.1 of the License, or (at your option) any later version. |
| 12 | |
| 13 | This library is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; |
| 15 | without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | Lesser General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU Lesser General Public |
| 20 | License along with this library; |
| 21 | if not, write to the Free Software |
| 22 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110 - 1301 USA |
| 23 | #endif |
| 24 | |
| 25 | #ifndef EQ500X_H |
| 26 | #define EQ500X_Hcxx . . $ `drivers/telescope/eq500x.h:26:9`! |
| 27 | |
| 28 | class EQ500Xcxx . . $ EQ500X# : public LX200Genericcxx . . $ LX200Generic# |
| 29 | { |
| 30 | public: |
| 31 | class MechanicalPointcxx . . $ EQ500X#MechanicalPoint# |
| 32 | { |
| 33 | public: |
| 34 | MechanicalPointcxx . . $ EQ500X#MechanicalPoint#MechanicalPoint(bc12c9ec15586e6a).(double, double); |
| 35 | MechanicalPointcxx . . $ EQ500X#MechanicalPoint#MechanicalPoint(49f6e7a06ebc5aa8).() {} |
| 36 | public: |
| 37 | bool atParkingPositioncxx . . $ EQ500X#MechanicalPoint#atParkingPosition(50ce9a9e25b4a850).() const; |
| 38 | public: |
| 39 | double RAmcxx . . $ EQ500X#MechanicalPoint#RAm(21b6c25e127938e2).() const; |
| 40 | double DECmcxx . . $ EQ500X#MechanicalPoint#DECm(21b6c25e127938e2).() const; |
| 41 | double RAmcxx . . $ EQ500X#MechanicalPoint#RAm(447c67c6676f75c3).(double const); |
| 42 | double DECmcxx . . $ EQ500X#MechanicalPoint#DECm(447c67c6676f75c3).(double const); |
| 43 | public: |
| 44 | double RAskycxx . . $ EQ500X#MechanicalPoint#RAsky(21b6c25e127938e2).() const; |
| 45 | double DECskycxx . . $ EQ500X#MechanicalPoint#DECsky(21b6c25e127938e2).() const; |
| 46 | double RAskycxx . . $ EQ500X#MechanicalPoint#RAsky(447c67c6676f75c3).(double const); |
| 47 | double DECskycxx . . $ EQ500X#MechanicalPoint#DECsky(447c67c6676f75c3).(double const); |
| 48 | public: |
| 49 | enum PointingStatecxx . . $ EQ500X#MechanicalPoint#PointingState# { POINTING_NORMALcxx . . $ EQ500X#MechanicalPoint#POINTING_NORMAL., POINTING_BEYOND_POLEcxx . . $ EQ500X#MechanicalPoint#POINTING_BEYOND_POLE. }; |
| 50 | enum PointingStatecxx . . $ EQ500X#MechanicalPoint#PointingState# setPointingStatecxx . . $ EQ500X#MechanicalPoint#setPointingState(870c23ac48565f80).(enum PointingStatecxx . . $ EQ500X#MechanicalPoint#PointingState#); |
| 51 | enum PointingStatecxx . . $ EQ500X#MechanicalPoint#PointingState# getPointingStatecxx . . $ EQ500X#MechanicalPoint#getPointingState(b83d7950f0d90ab8).() const; |
| 52 | public: |
| 53 | bool parseStringDECcxx . . $ EQ500X#MechanicalPoint#parseStringDEC(4be6f7de8d2c8d82).(char const *, size_t); |
| 54 | bool parseStringRAcxx . . $ EQ500X#MechanicalPoint#parseStringRA(4be6f7de8d2c8d82).(char const *, size_t); |
| 55 | char const * toStringDECcxx . . $ EQ500X#MechanicalPoint#toStringDEC(af7a693bf47ecec2).(char *, size_t) const; |
| 56 | char const * toStringRAcxx . . $ EQ500X#MechanicalPoint#toStringRA(af7a693bf47ecec2).(char *, size_t) const; |
| 57 | public: |
| 58 | char const * toStringDEC_Simcxx . . $ EQ500X#MechanicalPoint#toStringDEC_Sim(af7a693bf47ecec2).(char *, size_t) const; |
| 59 | public: |
| 60 | double RA_degrees_tocxx . . $ EQ500X#MechanicalPoint#RA_degrees_to(9d327cc768a3db53).(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &) const; |
| 61 | double DEC_degrees_tocxx . . $ EQ500X#MechanicalPoint#DEC_degrees_to(9d327cc768a3db53).(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &) const; |
| 62 | public: |
| 63 | double operatorcxx . . $ EQ500X#MechanicalPoint#operator-(9d327cc768a3db53). -(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &) const; |
| 64 | bool operatorcxx . . $ EQ500X#MechanicalPoint#`operator!=`(82275d8fe3b1655d). !=(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &) const; |
| 65 | bool operatorcxx . . $ EQ500X#MechanicalPoint#`operator==`(82275d8fe3b1655d). ==(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &) const; |
| 66 | protected: |
| 67 | enum PointingStatecxx . . $ EQ500X#MechanicalPoint#PointingState# _pointingStatecxx . . $ EQ500X#MechanicalPoint#_pointingState. {POINTING_NORMALcxx . . $ EQ500X#MechanicalPoint#POINTING_NORMAL.}; |
| 68 | long _RAmcxx . . $ EQ500X#MechanicalPoint#_RAm. {0 * 3600}, _DECmcxx . . $ EQ500X#MechanicalPoint#_DECm. {0 * 3600}; |
| 69 | }; |
| 70 | public: |
| 71 | EQ500Xcxx . . $ EQ500X#EQ500X(49f6e7a06ebc5aa8).(); |
| 72 | const char *getDefautNamecxx . . $ EQ500X#getDefautName(33a1f659e94feb42).(); |
| 73 | protected: |
| 74 | bool getCurrentMechanicalPositioncxx . . $ EQ500X#getCurrentMechanicalPosition(193af4f51ae565fc).(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# &); |
| 75 | bool setTargetMechanicalPositioncxx . . $ EQ500X#setTargetMechanicalPosition(d268d7c92fdc2c4e).(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &); |
| 76 | bool gotoTargetPositioncxx . . $ EQ500X#gotoTargetPosition(d268d7c92fdc2c4e).(MechanicalPointcxx . . $ EQ500X#MechanicalPoint# const &); |
| 77 | protected: |
| 78 | bool isParkedcxx . . $ EQ500X#isParked(c9857a73d68e59ba).(); |
| 79 | virtual double getLSTcxx . . $ EQ500X#getLST(31fa7155c10fdd13).(); |
| 80 | void resetSimulationcxx . . $ EQ500X#resetSimulation(49f6e7a06ebc5aa8).(); |
| 81 | protected: |
| 82 | int sendCmdcxx . . $ EQ500X#sendCmd(5c4306d8553b3696).(char const *); |
| 83 | int getReplycxx . . $ EQ500X#getReply(b6d9217c5e0a83f0).(char *, size_t const); |
| 84 | protected: |
| 85 | virtual bool checkConnectioncxx . . $ EQ500X#checkConnection(c9857a73d68e59ba).() override; |
| 86 | virtual bool updateLocationcxx . . $ EQ500X#updateLocation(c3c51e0645da350e).(double, double, double) override; |
| 87 | virtual void getBasicDatacxx . . $ EQ500X#getBasicData(49f6e7a06ebc5aa8).() override; |
| 88 | virtual bool ReadScopeStatuscxx . . $ EQ500X#ReadScopeStatus(c9857a73d68e59ba).() override; |
| 89 | virtual bool initPropertiescxx . . $ EQ500X#initProperties(c9857a73d68e59ba).() override; |
| 90 | virtual bool Gotocxx . . $ EQ500X#Goto(828b76dce88fac).(double, double) override; |
| 91 | virtual bool Synccxx . . $ EQ500X#Sync(828b76dce88fac).(double, double) override; |
| 92 | virtual bool Abortcxx . . $ EQ500X#Abort(c9857a73d68e59ba).() override; |
| 93 | virtual void setPierSidecxx . . $ EQ500X#setPierSide(ca2f721bf425513d).(TelescopePierSidecxx . . $ INDI/Telescope#TelescopePierSide#); |
| 94 | virtual bool MoveNScxx . . $ EQ500X#MoveNS(ffb1bb92c4b05851).(INDI_DIR_NScxx . . $ INDI_DIR_NS#, TelescopeMotionCommandcxx . . $ INDI/Telescope#TelescopeMotionCommand#) override; |
| 95 | private: |
| 96 | MechanicalPointcxx . . $ EQ500X#MechanicalPoint# currentMechPositioncxx . . $ EQ500X#currentMechPosition., targetMechPositioncxx . . $ EQ500X#targetMechPosition.; |
| 97 | double previousRAcxx . . $ EQ500X#previousRA. = {0}, previousDECcxx . . $ EQ500X#previousDEC. = {0}; |
| 98 | int countdowncxx . . $ EQ500X#countdown. {0}; |
| 99 | // Movement markers, adjustment is done when no movement is required and all flags are cleared |
| 100 | bool RAmIncreasecxx . . $ EQ500X#RAmIncrease. {false}, RAmDecreasecxx . . $ EQ500X#RAmDecrease. {false}; |
| 101 | bool DECmIncreasecxx . . $ EQ500X#DECmIncrease. {false}, DECmDecreasecxx . . $ EQ500X#DECmDecrease. {false}; |
| 102 | // Current adjustment rate |
| 103 | struct _adjustmentcxx . . $ _adjustment# const * adjustmentcxx . . $ EQ500X#adjustment. |
| 104 | { |
| 105 | nullptr |
| 106 | }; |
| 107 | bool _gotoEngagedcxx . . $ EQ500X#_gotoEngaged. {false}; |
| 108 | enum TelescopeSlewRatecxx . . $ INDI/Telescope#TelescopeSlewRate# savedSlewRateIndexcxx . . $ EQ500X#savedSlewRateIndex. {SLEW_MAXcxx . . $ INDI/Telescope#SLEW_MAX.}; |
| 109 | }; |
| 110 | |
| 111 | #endif // EQ500X_H |