33 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
73 uint32_t m_TargetPosition { 0 };
74 uint32_t m_LastPosition { 0 };
75 double m_LastTemperature { 0 };
76 uint16_t m_TemperatureCounter { 0 };
78 const static uint32_t homePosition { 8000 };
82 bool m_MovementTimerActive {
false };
88 static const char DRIVER_STOP_CHAR {
'#' };
91 static constexpr
const uint8_t DRIVER_TEMPERATURE_FREQ {10};
93 static constexpr
const uint8_t DRIVER_TIMEOUT {3};
95 static constexpr
const uint8_t DRIVER_LEN {16};
The ElapsedTimer class provides a fast way to calculate elapsed times.
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
Focuser Command Functions.
virtual bool Handshake() override
perform handshake with device to check communication
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual IPState MoveRelFocuser(FocusDirection dir, unsigned int ticks) override
bool sendCommand(const char *cmd, char *res, int res_len)
Communication Functions.
const char * getDefaultName() override
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
Number vector property descriptor.
Switch vector property descriptor.