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
Performs a device-specific handshake after a connection is established. This method should be overrid...
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
Processes incoming new switch states from the client for this device. Handles updates to FocuserInter...
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
Updates the state and definition of properties based on the current connection status....
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
Number vector property descriptor.
Switch vector property descriptor.