Debian Codegraph @

drivers/telescope/ieqpro.h

raw symbols SCIP
1 /*
2 INDI IEQ Pro driver
3
4 Copyright (C) 2015 Jasem Mutlaq
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #pragma once
22
23 #include <memory>
24
25 #include "ieqdriverbase.h"cxx . . $ `<file>/drivers/telescope/ieqdriverbase.h`/
26 #include "indiguiderinterface.h"cxx . . $ `<file>/libs/indibase/indiguiderinterface.h`/
27 #include "inditelescope.h"cxx . . $ `<file>/libs/indibase/inditelescope.h`/
28
29 class IEQProcxx . . $ IEQPro# : public INDIcxx . . $ INDI/::Telescopecxx . . $ INDI/Telescope#, public INDIcxx . . $ INDI/::GuiderInterfacecxx . . $ INDI/GuiderInterface#
30 {
31 public:
32 IEQProcxx . . $ IEQPro#IEQPro(49f6e7a06ebc5aa8).();
33
34 virtual bool ISNewNumbercxx . . $ IEQPro#ISNewNumber(b910d3521abb33fb).(const char *dev, const char *name, double values[], char *names[], int n) override;
35 virtual bool ISNewSwitchcxx . . $ IEQPro#ISNewSwitch(e439c05866add404).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char *names[], int n) override;
36
37 protected:
38 virtual const char *getDefaultNamecxx . . $ IEQPro#getDefaultName(33a1f659e94feb42).() override;
39
40 virtual bool Handshakecxx . . $ IEQPro#Handshake(c9857a73d68e59ba).() override;
41
42 virtual bool initPropertiescxx . . $ IEQPro#initProperties(c9857a73d68e59ba).() override;
43 virtual bool updatePropertiescxx . . $ IEQPro#updateProperties(c9857a73d68e59ba).() override;
44
45 virtual bool ReadScopeStatuscxx . . $ IEQPro#ReadScopeStatus(c9857a73d68e59ba).() override;
46
47 virtual bool MoveNScxx . . $ IEQPro#MoveNS(ffb1bb92c4b05851).(INDI_DIR_NScxx . . $ INDI_DIR_NS# dir, TelescopeMotionCommandcxx . . $ INDI/Telescope#TelescopeMotionCommand# command) override;
48 virtual bool MoveWEcxx . . $ IEQPro#MoveWE(a98f225cdad633ca).(INDI_DIR_WEcxx . . $ INDI_DIR_WE# dir, TelescopeMotionCommandcxx . . $ INDI/Telescope#TelescopeMotionCommand# command) override;
49
50 virtual bool saveConfigItemscxx . . $ IEQPro#saveConfigItems(dc9e5a301483124c).(FILEcxx . . $ FILE# *fp) override;
51
52 virtual bool Parkcxx . . $ IEQPro#Park(c9857a73d68e59ba).() override;
53 virtual bool UnParkcxx . . $ IEQPro#UnPark(c9857a73d68e59ba).() override;
54
55 virtual bool Synccxx . . $ IEQPro#Sync(828b76dce88fac).(double ra, double dec) override;
56 virtual bool Gotocxx . . $ IEQPro#Goto(828b76dce88fac).(double, double) override;
57 virtual bool Abortcxx . . $ IEQPro#Abort(c9857a73d68e59ba).() override;
58
59 virtual bool updateTimecxx . . $ IEQPro#updateTime(8f5ba5a5ba688cb1).(ln_datecxx . . $ ln_date# *utc, double utc_offset) override;
60 virtual bool updateLocationcxx . . $ IEQPro#updateLocation(c3c51e0645da350e).(double latitude, double longitude, double elevation) override;
61
62 virtual void debugTriggeredcxx . . $ IEQPro#debugTriggered(b45ddcbc8423892c).(bool enable) override;
63 virtual void simulationTriggeredcxx . . $ IEQPro#simulationTriggered(b45ddcbc8423892c).(bool enable) override;
64
65 // Parking
66 virtual bool SetCurrentParkcxx . . $ IEQPro#SetCurrentPark(c9857a73d68e59ba).() override;
67 virtual bool SetDefaultParkcxx . . $ IEQPro#SetDefaultPark(c9857a73d68e59ba).() override;
68
69 // Track Mode
70 virtual bool SetTrackModecxx . . $ IEQPro#SetTrackMode(cef82f9be00a201a).(uint8_tcxx . . $ uint8_t# mode) override;
71
72 // Track Rate
73 virtual bool SetTrackRatecxx . . $ IEQPro#SetTrackRate(828b76dce88fac).(double raRate, double deRate) override;
74
75 // Track On/Off
76 virtual bool SetTrackEnabledcxx . . $ IEQPro#SetTrackEnabled(efaadfb7dc14930a).(bool enabled) override;
77
78 // Slew Rate
79 virtual bool SetSlewRatecxx . . $ IEQPro#SetSlewRate(83c267b20bac841a).(int index) override;
80
81 // Sim
82 //void mountSim();
83
84 // Guide
85 virtual IPStatecxx . . $ IPState# GuideNorthcxx . . $ IEQPro#GuideNorth(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms) override;
86 virtual IPStatecxx . . $ IPState# GuideSouthcxx . . $ IEQPro#GuideSouth(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms) override;
87 virtual IPStatecxx . . $ IPState# GuideEastcxx . . $ IEQPro#GuideEast(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms) override;
88 virtual IPStatecxx . . $ IPState# GuideWestcxx . . $ IEQPro#GuideWest(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# ms) override;
89
90 private:
91 /**
92 * @brief getStartupData Get initial mount info on startup.
93 */
94 void getStartupDatacxx . . $ IEQPro#getStartupData(49f6e7a06ebc5aa8).();
95
96 /* Firmware */
97 ITextcxx . . $ IText# FirmwareTcxx . . $ IEQPro#FirmwareT.[5] {};
98 ITextVectorPropertycxx . . $ ITextVectorProperty# FirmwareTPcxx . . $ IEQPro#FirmwareTP.;
99
100 /* Tracking Mode */
101 //ISwitchVectorProperty TrackModeSP;
102 //ISwitch TrackModeS[4];
103
104 /* Custom Tracking Rate */
105 //INumber CustomTrackRateN[1];
106 //INumberVectorProperty CustomTrackRateNP;
107
108 /* GPS Status */
109 ISwitchcxx . . $ ISwitch# GPSStatusScxx . . $ IEQPro#GPSStatusS.[3];
110 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# GPSStatusSPcxx . . $ IEQPro#GPSStatusSP.;
111
112 /* Time Source */
113 ISwitchcxx . . $ ISwitch# TimeSourceScxx . . $ IEQPro#TimeSourceS.[3];
114 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# TimeSourceSPcxx . . $ IEQPro#TimeSourceSP.;
115
116 /* Hemisphere */
117 ISwitchcxx . . $ ISwitch# HemisphereScxx . . $ IEQPro#HemisphereS.[2];
118 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# HemisphereSPcxx . . $ IEQPro#HemisphereSP.;
119
120 /* Home Control */
121 ISwitchcxx . . $ ISwitch# HomeScxx . . $ IEQPro#HomeS.[3];
122 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# HomeSPcxx . . $ IEQPro#HomeSP.;
123
124 /* Guide Rate */
125 INumbercxx . . $ INumber# GuideRateNcxx . . $ IEQPro#GuideRateN.[2];
126 INumberVectorPropertycxx . . $ INumberVectorProperty# GuideRateNPcxx . . $ IEQPro#GuideRateNP.;
127
128 unsigned int DBG_SCOPEcxx . . $ IEQPro#DBG_SCOPE.;
129 double currentRAcxx . . $ IEQPro#currentRA. = 0, currentDECcxx . . $ IEQPro#currentDEC. = 0;
130 double targetRAcxx . . $ IEQPro#targetRA. = 0, targetDECcxx . . $ IEQPro#targetDEC. = 0;
131
132 bool canParkNativelycxx . . $ IEQPro#canParkNatively. { false };
133 bool canFindHomecxx . . $ IEQPro#canFindHome. { false };
134 bool canGuideRatecxx . . $ IEQPro#canGuideRate. { false };
135 bool slewDirtycxx . . $ IEQPro#slewDirty. { false };
136
137 iEQcxx . . $ iEQ/::Basecxx . . $ iEQ/Base#::Infocxx . . $ iEQ/Base#Info# scopeInfocxx . . $ IEQPro#scopeInfo.;
138 iEQcxx . . $ iEQ/::Basecxx . . $ iEQ/Base#::FirmwareInfocxx . . $ iEQ/Base#FirmwareInfo# firmwareInfocxx . . $ IEQPro#firmwareInfo.;
139 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<iEQcxx . . $ iEQ/::Basecxx . . $ iEQ/Base#> drivercxx . . $ IEQPro#driver.;
140 };