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 };
83 INDI::PropertyNumber TemperatureNP {2};
90 INDI::PropertyNumber SpeedNP {1};
92 INDI::PropertyText FirmwareTP {2};
99 INDI::PropertyNumber VoltageInNP {1};
101 INDI::PropertySwitch CalibrationSP {2};
108 INDI::PropertySwitch FastMoveSP {3};
122 INDI::PropertyNumber MotorRateNP {3};
130 INDI::PropertyNumber MotorCurrentNP {4};
139 INDI::PropertySwitch MotorHoldSP {2};
146 INDI::PropertySwitch MotorApplyPresetSP {3};
154 INDI::PropertySwitch MotorApplyUserPresetSP {3};
162 INDI::PropertySwitch MotorSaveUserPresetSP {3};
170 INDI::PropertyText CalibrationMessageTP {1};
171 typedef enum { Idle, GoToMiddle, GoMinimum, GoDupa, GoMaximum, Complete } CalibrationStage;
172 CalibrationStage cStage { Idle };
174 INDI::Timer m_MotionProgressTimer;
175 INDI::Timer m_HallSensorTimer;
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};
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 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...