36 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
37 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
39 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
47 virtual bool Park()
override;
48 virtual bool UnPark()
override;
49 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
51 virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years)
override;
60 static constexpr const uint8_t SLEW_MODES {10};
61 static constexpr const uint8_t DRIVER_LEN {64};
62 static const char DRIVER_STOP_CHAR { 0x23 };
63 static constexpr const uint8_t DRIVER_TIMEOUT {3};
77 enum NYXTelescopeTrackMode
126 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
127 void hexDump(
char * buf,
const char * data,
int size);
128 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
131 bool setMountType(
int type);
132 bool setGuideRate(
int rate);
133 bool verboseReport =
false;
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 setUTCOffset(double offset) override
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years) override
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.