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 };
176 bool m_IsSestoSenso2 {
true };
178 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
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
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
Process the client newNumber command.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
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
Process the client newSwitch command.
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
perform handshake with device to check communication