78 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
79 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
80 bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
122 bool SyncAZ(
double degrees)
override;
123 bool SyncALT(
double degrees)
override;
142 bool sendCommand(
const char *
cmd,
char *res =
nullptr);
149 bool parseTelemetry(
const char *response);
159 static void degreesToDMS(
double degrees,
int &d,
int &m,
int &s,
bool &positive);
168 IPState sendRelativeMove(
double degrees,
const char *cmdPos,
const char *cmdNeg);
170 void hexDump(
char *buf,
const char *data,
int size);
176 void checkMotionComplete();
190 INDI::PropertyLight HomedLP {1};
194 INDI::PropertyNumber AzSoftLimitsNP {2};
195 enum { AZ_LIMIT_MIN, AZ_LIMIT_MAX };
198 INDI::PropertyNumber AltSoftLimitsNP {2};
199 enum { ALT_LIMIT_MIN, ALT_LIMIT_MAX };
202 INDI::PropertySwitch AltOvershootSP {2};
203 enum { ALT_OVERSHOOT_ENABLED, ALT_OVERSHOOT_DISABLED };
206 INDI::PropertySwitch AltOvershootDirSP {2};
207 enum { ALT_OVERSHOOT_UP, ALT_OVERSHOOT_DOWN };
210 INDI::PropertyNumber AltOvershootAmountNP {1};
221 INDI::PropertyNumber CorrectionPercentNP {1};
224 INDI::PropertySwitch CorrectionOvershootSP {2};
225 enum { CORR_OVERSHOOT_ENABLED, CORR_OVERSHOOT_DISABLED };
228 INDI::PropertySwitch CorrectionOvershootDirSP {2};
229 enum { CORR_OVERSHOOT_UP, CORR_OVERSHOOT_DOWN };
232 INDI::PropertyNumber CorrectionOvershootAmountNP {1};
236 INDI::PropertyNumber AzMotorNP {9};
251 INDI::PropertyNumber AltMotorNP {9};
266 INDI::PropertySwitch SaveRebootSP {1};
271 INDI::PropertyText StationSSIDTP {1};
275 INDI::PropertyText StationPasswordTP {1};
278 INDI::PropertyText APConfigTP {2};
279 enum { AP_SSID, AP_IP };
283 INDI::PropertyText APPasswordTP {1};
289 INDI::PropertyText FirmwareInfoTP {2};
290 enum { FIRMWARE_VERSION, FIRMWARE_SERIAL };
293 INDI::PropertyText WiFiInfoTP {6};
294 enum { WIFI_INFO_AP_SSID, WIFI_INFO_AP_IP, WIFI_INFO_AP_MAC,
295 WIFI_INFO_STA_SSID, WIFI_INFO_STA_IP, WIFI_INFO_STA_MAC };
300 bool m_IsMoving {
false};
301 bool m_IsHoming {
false};
302 bool m_IsHomed {
false};
305 bool m_BacklashLogged {
false};
308 double m_OvshD {0}, m_OvshM {0}, m_OvshS {0};
311 Connection::Serial *serialConnection {
nullptr};
316 static constexpr uint8_t DRIVER_TIMEOUT {5};
317 static constexpr uint16_t DRIVER_LEN {2048};
318 static constexpr char DRIVER_STOP_CHAR {
'\n'};
319 static constexpr const char *MOTOR_CONFIG_TAB {
"Motor Config"};
320 static constexpr const char *NETWORK_TAB {
"Network"};
321 static constexpr const char *INFO_TAB {
"Info"};
322 static constexpr const char *CORRECTION_TAB {
"Correction"};