39 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
40 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
57 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
59 virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years)
override;
62 virtual bool Park()
override;
63 virtual bool UnPark()
override;
89 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
97 bool sendStatusCommand(
const char *
cmd,
char * res);
98 void hexDump(
char * buf,
const char * data,
int size);
99 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
118 INDI::PropertySwitch HeavyDutyModeSP {2};
121 INDI::PropertySwitch MeridianFlipSP {2};
124 INDI::PropertySwitch PostMeridianTrackSP {2};
132 INDI::PropertyNumber MeridianLimitNP {1};
135 INDI::PropertySwitch AltitudeLimitSP {3};
142 INDI::PropertyNumber AltitudeLimitUpperNP {1};
143 INDI::PropertyNumber AltitudeLimitLowerNP {1};
146 INDI::PropertySwitch MultiStarAlignSP {1};
153 INDI::PropertyNumber VariableSlewRateNP {1};
156 INDI::PropertyText FirmwareTP {2};
165 INDI::PropertySwitch CustomParkSP {1};
179 void getFirmwareInfo();
180 bool hasMountPark()
const
182 return m_FirmwareVersion >= FIRMWARE_MOUNT_PARK;
184 bool hasCustomParkPosition()
const
186 return m_FirmwareVersion >= FIRMWARE_CUSTOM_PARK_POSITION;
190 bool parkToMountPosition();
191 bool getMountParkState(
char &state);
192 void checkMountParkState();
193 void updateMountPark(
bool slewComplete);
194 void failMountPark(
const char *reason);
197 bool setAltitudeLimitEnabled(
bool enable);
198 bool getAltitudeLimitStatus();
199 bool setAltitudeLimitUpper(
double limit);
200 bool getAltitudeLimitUpper();
201 bool setAltitudeLimitLower(
double limit);
202 bool getAltitudeLimitLower();
205 bool clearMultiStarAlignmentData();
208 bool setVariableSlewRate(
double rate);
211 bool setGuideRate(
double value);
216 bool setBuzzer(
int value);
219 bool getHeavyDutyMode();
220 bool setHeavyDutyMode(
bool enable);
223 bool readMountType();
230 bool setMeridianFlipSettings(
bool enabled,
bool track,
double limit);
231 bool getMeridianFlipSettings();
238 static const char DRIVER_STOP_CHAR { 0x23 };
240 static constexpr const uint8_t DRIVER_TIMEOUT {3};
242 static constexpr const uint8_t DRIVER_LEN {64};
244 static constexpr const uint8_t SLEW_MODES {10};
245 static constexpr const char * MERIDIAN_FLIP_TAB {
"Meridian Flip"};
246 static constexpr const char * ALTITUDE_LIMIT_TAB {
"Altitude Limits"};
247 static constexpr const char * ALIGNMENT_TAB {
"Alignment"};
251 static constexpr uint32_t FIRMWARE_MOUNT_PARK {0x010109};
253 static constexpr uint32_t FIRMWARE_CUSTOM_PARK_POSITION {0x010300};
255 static constexpr std::chrono::seconds PARK_START_TIMEOUT {5};
257 uint32_t m_FirmwareVersion {0};
260 bool m_MountParking {
false};
261 bool m_ParkMoved {
false};
262 std::chrono::steady_clock::time_point m_ParkDeadline;
TelescopeMountType
Mount geometry reported in the standard TELESCOPE_MOUNT_TYPE property. The values are the indices of ...
virtual bool ReadScopeStatus() override
Read telescope status.
virtual IPState ExecuteHomeAction(TelescopeHomeAction action) override
Execute a homing action.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool SetMountType(TelescopeMountType type) override
SetMountType Called when the user selects a different mount type in TELESCOPE_MOUNT_TYPE....
virtual bool SetDefaultPark() override
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool Park() override
Park the telescope to its home position.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual const char * getDefaultName() override
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool checkConnection() override
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual ~LX200AM5() override=default
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool setUTCOffset(double offset) override
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years) override
*brief user defined string literal for JSON values *sa std::size_t n