36 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
37 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
51 bool updateMaxLimit();
52 bool updateTemperature();
53 bool updatePosition();
54 bool updateVoltageIn();
55 bool fetchMotorSettings();
56 bool applyMotorRates();
57 bool applyMotorCurrents();
58 void setConnectionParams();
59 bool initCommandSet();
60 void checkMotionProgressCallback();
61 bool getStartupValues();
62 bool isMotionComplete();
71 SestoSenso3Model m_SubModel { SESTOSENSO3_STANDARD };
74 uint32_t backlashTicks { 0 };
75 uint32_t targetPos { 0 };
76 uint32_t lastPos { 0 };
77 double lastVoltageIn { 0 };
78 double lastTemperature { 0 };
79 uint16_t m_TemperatureCounter { 0 };
81 std::unique_ptr<PrimalucaLabs::SestoSenso3> m_SestoSenso3;
174 RECOVERY_DELAY_VALUE,
177 typedef enum { Idle, GoToMiddle, GoMinimum, GoMaximum, Complete } CalibrationStage;
178 CalibrationStage cStage { Idle };
185 static const char SESTO_STOP_CHAR { 0xD };
186 static constexpr const uint8_t SESTO_TEMPERATURE_FREQ {10};
187 static constexpr const uint8_t SESTO_TIMEOUT {5};
188 static constexpr const int SESTO_LEN {1024};
The Timer class provides repetitive and single-shot timers.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
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 MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
virtual ~SestoSenso3() override=default
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
const char * getDefaultName() override
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Processes incoming new number values from the client for this device. Handles updates to FocuserInter...
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
virtual bool saveConfigItems(FILE *fp) override
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...