38 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
39 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
41 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
48 virtual bool Goto(
double ra,
double dec)
override;
50 virtual bool Park()
override;
51 virtual bool UnPark()
override;
54 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
56 virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years)
override;
66 static constexpr const uint8_t SLEW_MODES {10};
67 static constexpr const uint8_t DRIVER_LEN {64};
68 static const char DRIVER_STOP_CHAR { 0x23 };
69 static constexpr const uint8_t DRIVER_TIMEOUT {3};
71 static constexpr double GUIDE_RATES[] {0.25, 0.50, 1.00};
73 static constexpr std::chrono::seconds UNPARK_TIMEOUT {10};
75 bool m_UnparkPending {
false};
76 std::chrono::steady_clock::time_point m_UnparkRequested;
78 static constexpr std::chrono::seconds PARK_START_TIMEOUT {10};
79 std::chrono::steady_clock::time_point m_ParkRequested;
82 static constexpr std::chrono::seconds SLEW_START_TIMEOUT {3};
83 std::chrono::steady_clock::time_point m_SlewRequested;
84 bool m_SlewSeen {
true};
98 enum NYXTelescopeTrackMode
141 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
142 void hexDump(
char * buf,
const char * data,
int size);
143 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
146 bool setGuideRate(
int rate);
147 static int nearestGuideRate(
double rate);
148 void setGuideRateValue(
int index);
149 bool verboseReport =
false;
TelescopeMountType
Mount geometry reported in the standard TELESCOPE_MOUNT_TYPE property. The values are the indices of ...
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual bool setUTCOffset(double offset) override
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool SetMountType(TelescopeMountType type) override
SetMountType Called when the user selects a different mount type in TELESCOPE_MOUNT_TYPE....
virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years) override
virtual bool Goto(double ra, double dec) override
Move the scope to the supplied RA and DEC coordinates.
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool Park() override
Park the telescope to its home position.
virtual const char * getDefaultName() override
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool ReadScopeStatus() override
Read telescope status.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual IPState ExecuteHomeAction(TelescopeHomeAction action) override
Execute a homing action.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
*brief user defined string literal for JSON values *sa std::size_t n