3 Copyright (C) 2003 - 2017 Jasem Mutlaq (mutlaqja@ikarustech.com)
5 This library is free software;
6 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;
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT
ANY WARRANTY;
14 without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License
for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with
this library;
20 if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110 - 1301 USA
68 std::unique_ptr<LX200Generic> telescope;
76 IDLog(
"initializing from LX200 classic device...\n");
79 else if (strstr(
__progname,
"indi_lx200_OnStep"))
81 IDLog(
"initializing from LX200 OnStep device...\n");
86 IDLog(
"initializing from LX200 GPS device...\n");
91 IDLog(
"Initializing from LX200 16 device...\n");
94 else if (strstr(
__progname,
"indi_lx200autostar"))
96 IDLog(
"initializing from Autostar device...\n");
99 else if (strstr(
__progname,
"indi_lx200ap_v2"))
101 IDLog(
"initializing from Astrophysics V2 device...\n");
104 else if (strstr(
__progname,
"indi_lx200ap_gtocp2"))
106 IDLog(
"initializing from Astrophysics GTOCP2 device...\n");
111 IDLog(
"initializing from Astrophysics device...\n");
114 else if (strstr(
__progname,
"indi_lx200gemini"))
116 IDLog(
"initializing from Losmandy Gemini device...\n");
119 else if (strstr(
__progname,
"indi_lx200zeq25"))
121 IDLog(
"initializing from ZEQ25 device...\n");
124 else if (strstr(
__progname,
"indi_lx200gotonova"))
126 IDLog(
"initializing from GotoNova device...\n");
129 else if (strstr(
__progname,
"indi_ioptronHC8406"))
131 IDLog(
"initializing from ioptron telescope Hand Controller HC8406 device...\n");
134 else if (strstr(
__progname,
"indi_lx200pulsar2"))
136 IDLog(
"initializing from pulsar2 device...\n");
139 else if (strstr(
__progname,
"indi_lx200ss2000pc"))
141 IDLog(
"initializing from skysensor2000pc device...\n");
146 IDLog(
"initializing from Astro-Electronic FS-2...\n");
149 else if (strstr(
__progname,
"indi_lx200_10micron"))
151 IDLog(
"initializing for 10Micron mount...\n");
156 IDLog(
"initializing for EQ500X mount...\n");
157 telescope.reset(
new EQ500X());
161 IDLog(
"initializing for ZWO AM5 mount...\n");
164 else if (strstr(
__progname,
"indi_lx200_OpenAstroTech"))
166 IDLog(
"initializing for OpenAstroTech mount...\n");
169 else if (strstr(
__progname,
"indi_lx200_pegasus_nyx101"))
171 IDLog(
"initializing for Pegasus NYX-101 mount...\n");
202 LOG_DEBUG(
"Initializing from Generic LX200 device...");
void setVersion(uint16_t vMajor, uint16_t vMinor)
Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor.
void SetTelescopeCapability(uint32_t cap, uint8_t slewRateCount)
SetTelescopeCapability sets the Telescope capabilities. All capabilities must be initialized.
@ TELESCOPE_HAS_TRACK_MODE
@ LX200_HAS_PULSE_GUIDING
@ LX200_HAS_ALIGNMENT_TYPE
@ LX200_HAS_TRACKING_FREQ
void setLX200Capability(uint32_t cap)
void IDLog(const char *fmt,...)
static Logger & getInstance()
Method to get a reference to the object (i.e., Singleton) It is a static method.
int addDebugLevel(const char *debugLevelName, const char *LoggingLevelName)
Adds a new debugging level to the driver.