41 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
42 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
59 bool getParameter(
const std::string ¶meter, std::string &value);
64 bool setParameter(
const std::string ¶meter,
const std::string &value);
70 bool sendCommandOK(
const char *
cmd);
71 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
72 void hexDump(
char * buf,
const char * data,
int size);
73 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
78 void getStartupValues();
79 template <
typename T> std::string to_string(
const T a_value,
const int n = 2);
106 ISwitch TemperatureCompensationS[2];
124 INumber TemperatureSettingsN[3];
155 std::map<Summary, std::string> m_Summary;
156 bool m_ConfirmFactoryReset {
false };
161 static constexpr
const char * SETTINGS_TAB =
"Settings";
162 static constexpr
const char * COMPENSATION_TAB =
"Compensation";
164 static const char DRIVER_STOP_CHAR { 0x0A };
166 static constexpr
const uint8_t DRIVER_TIMEOUT {3};
168 static constexpr
const uint8_t DRIVER_LEN {192};
virtual bool SetFocuserMaxPosition(uint32_t ticks) override
Reverse Focuser Motion.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual IPState MoveRelFocuser(FocusDirection dir, unsigned int ticks) override
virtual bool ReverseFocuser(bool enabled) override
Reverse Focuser Motion.
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
const char * getDefaultName() override
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool Handshake() override
perform handshake with device to check communication
virtual bool SyncFocuser(uint32_t ticks) override
Sync focuser.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.