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;
52 bool setMinLimit(uint32_t limit);
53 bool setMaxLimit(uint32_t limit);
54 bool updateMaxLimit();
56 bool updateTemperature();
57 bool updatePosition();
58 bool updateVoltageIn();
59 bool fetchMotorSettings();
60 bool applyMotorRates();
61 bool applyMotorCurrents();
62 void setConnectionParams();
63 bool initCommandSet();
64 void checkMotionProgressCallback();
65 void checkHallSensorCallback();
67 bool getStartupValues();
68 void hexDump(
char * buf,
const char * data,
int size);
69 bool isMotionComplete();
74 int32_t startPos { 0 };
75 uint32_t backlashTicks { 0 };
76 uint32_t targetPos { 0 };
77 uint32_t lastPos { 0 };
78 int32_t previousPos { 0 };
79 double lastVoltageIn { 0 };
80 double lastTemperature { 0 };
81 uint16_t m_TemperatureCounter { 0 };
171 typedef enum { Idle, GoToMiddle, GoMinimum, GoDupa, GoMaximum, Complete } CalibrationStage;
172 CalibrationStage cStage { Idle };
177 std::unique_ptr<PrimalucaLabs::SestoSenso2> m_SestoSenso2;
183 static const char SESTO_STOP_CHAR { 0xD };
186 static constexpr const uint8_t SESTO_TEMPERATURE_FREQ {10};
188 static constexpr const uint8_t SESTO_TIMEOUT {5};
190 static constexpr const int SESTO_LEN {1024};
The Timer class provides repetitive and single-shot timers.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
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 bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual bool saveConfigItems(FILE *fp) override
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
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...
const char * getDefaultName() override
virtual ~SestoSenso2() override=default
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...