35 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
48 bool setMinLimit(uint32_t limit);
49 bool setMaxLimit(uint32_t limit);
50 bool updateMaxLimit();
52 bool updateTemperature();
53 bool updatePosition();
55 void checkMotionProgressCallback();
60 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
61 bool getStartupValues();
62 void hexDump(
char * buf,
const char * data,
int size);
63 bool isMotionComplete();
65 uint32_t targetPos { 0 };
66 uint32_t lastPos { 0 };
67 double lastTemperature { 0 };
68 uint16_t m_TemperatureCounter { 0 };
75 IText FirmwareT[1] {};
95 IText CalibrationMessageT[1] {};
98 typedef enum { Idle, GoToMiddle, GoMinimum, GoMaximum, Complete } CalibrationStage;
99 CalibrationStage cStage { Idle };
104 static const char SESTO_STOP_CHAR { 0xD };
107 static constexpr const uint8_t SESTO_TEMPERATURE_FREQ {10};
109 static constexpr const uint8_t SESTO_TIMEOUT {3};
111 static constexpr const uint8_t SESTO_LEN {64};
The Timer class provides repetitive and single-shot timers.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
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 bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
virtual ~SestoSenso() override=default
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
const char * getDefaultName() override
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool Disconnect() override
Disconnect from device.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.