39 virtual bool ISNewNumber (
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
40 virtual bool ISNewSwitch (
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
54 double lastTemperature { 1e6 };
55 uint32_t currentSpeed, targetPos;
57 struct timeval focusMoveStart;
58 float focusMoveRequest;
60 void GetFocusParams();
61 bool updateMoveDirection();
62 bool updateMaxTravel();
63 bool updateStepSize();
64 bool updateBacklash();
65 bool updateTemperature();
66 bool updateTemperatureK();
67 bool updatePosition();
68 bool LakesideOnline();
70 bool updateActiveTemperatureSlope();
71 bool updateSlope1Inc();
72 bool updateSlope1Dir();
73 bool updateSlope1Deadband();
74 bool updateSlope1Period();
75 bool updateSlope2Inc();
76 bool updateSlope2Dir();
77 bool updateSlope2Deadband();
78 bool updateSlope2Period();
80 bool GetLakesideStatus();
82 char DecodeBuffer(
char* in_response);
83 bool SendCmd(
const char *in_cmd);
84 bool ReadBuffer(
char* response);
86 bool gotoPosition(uint32_t position);
88 bool setCalibration();
90 bool setTemperatureTracking(
bool enable);
91 bool setBacklash(
int backlash );
92 bool setStepSize(
int stepsize );
93 bool setMaxTravel(
int);
96 bool setActiveTemperatureSlope(uint32_t active_slope);
97 bool setSlope1Inc(uint32_t slope1_inc);
98 bool setSlope1Dir(uint32_t slope1_direction);
99 bool setSlope1Deadband(uint32_t slope1_deadband);
100 bool setSlope1Period(uint32_t slope1_period);
101 bool setSlope2Inc(uint32_t slope2_inc);
102 bool setSlope2Dir(uint32_t slope2_direction);
103 bool setSlope2Deadband(uint32_t slope2_deadband);
104 bool setSlope2Period(uint32_t slope2_period);
106 void hexDump(
char * buf,
const char * data,
int size);
126 ISwitch TemperatureTrackingS[2];
129 ISwitch ActiveTemperatureSlopeS[2];
156 static constexpr const char *
SETTINGS_TAB {
"Settings" };
virtual IPState MoveAbsFocuser(uint32_t ticks) override
MoveFocuser the focuser to an absolute position.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
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 bool SetFocuserBacklashEnabled(bool enabled) override
SetFocuserBacklashEnabled Enables or disables the focuser backlash compensation.
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 updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
~Lakeside() override=default
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 SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
#define TEMPERATURE_THRESHOLD
Number vector property descriptor.
Switch vector property descriptor.