16 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
17 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
27 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
30 virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years)
override;
32 virtual bool Goto(
double ra,
double dec)
override;
39 virtual bool Park()
override;
40 virtual bool UnPark()
override;
54 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
55 void hexDump(
char * buf,
const char * data,
int size);
57 void getStartupData();
60 bool setMountType(
int type);
68 bool setGuideRate(
double value);
71 bool setBuzzer(
int value);
74 bool setMeridianFlipSettings(
bool enabled,
bool track,
double limit);
75 bool getMeridianFlipSettings();
77 static constexpr uint8_t SLEW_RATE_COUNT = 10;
78 static constexpr uint8_t DRIVER_LEN = 64;
79 static constexpr uint8_t DRIVER_TIMEOUT = 3;
80 static constexpr char DRIVER_STOP_CHAR = 0x23;
95 enum MeridianTrackSwitch
virtual bool ReadScopeStatus() override
Read telescope status.
virtual const char * getDefaultName() override
virtual bool Park() override
Park the telescope to its home position.
virtual bool checkConnection() override
virtual bool Goto(double ra, double dec) override
Override - Goto.
virtual bool SetCurrentPark() override
Override - Park.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Override - Location.
virtual bool setUTCOffset(double offset) override
Override - Date.
virtual bool setLocalDate(uint8_t days, uint8_t months, uint16_t years) override
virtual ~ToupSH20() override=default
virtual bool SetTrackEnabled(bool enabled) override
Override - Track enable.
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual IPState ExecuteHomeAction(TelescopeHomeAction action) override
Override - Home.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool initProperties() override
Called to initialize basic properties required all the time.