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;
53 double lastTemperature { 1e6 };
54 uint32_t currentSpeed, targetPos;
56 struct timeval focusMoveStart;
57 float focusMoveRequest;
59 void GetFocusParams();
60 bool updateMoveDirection();
61 bool updateMaxTravel();
62 bool updateStepSize();
63 bool updateBacklash();
64 bool updateTemperature();
65 bool updateTemperatureK();
66 bool updatePosition();
67 bool LakesideOnline();
69 bool updateActiveTemperatureSlope();
70 bool updateSlope1Inc();
71 bool updateSlope1Dir();
72 bool updateSlope1Deadband();
73 bool updateSlope1Period();
74 bool updateSlope2Inc();
75 bool updateSlope2Dir();
76 bool updateSlope2Deadband();
77 bool updateSlope2Period();
79 bool GetLakesideStatus();
81 char DecodeBuffer(
char* in_response);
82 bool SendCmd(
const char *in_cmd);
83 bool ReadBuffer(
char* response);
85 bool gotoPosition(uint32_t position);
87 bool setCalibration();
89 bool setTemperatureTracking(
bool enable);
91 bool setStepSize(
int stepsize );
92 bool setMaxTravel(
int);
95 bool setActiveTemperatureSlope(uint32_t active_slope);
96 bool setSlope1Inc(uint32_t slope1_inc);
97 bool setSlope1Dir(uint32_t slope1_direction);
98 bool setSlope1Deadband(uint32_t slope1_deadband);
99 bool setSlope1Period(uint32_t slope1_period);
100 bool setSlope2Inc(uint32_t slope2_inc);
101 bool setSlope2Dir(uint32_t slope2_direction);
102 bool setSlope2Deadband(uint32_t slope2_deadband);
103 bool setSlope2Period(uint32_t slope2_period);
105 void hexDump(
char * buf,
const char * data,
int size);
125 ISwitch TemperatureTrackingS[2];
128 ISwitch ActiveTemperatureSlopeS[2];
155 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
Initilize properties initial state and value. The child class must implement this function.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
const char * getDefaultName() override
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool Handshake() override
perform handshake with device to check communication
~Lakeside() override=default
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
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
const char * SETTINGS_TAB
bool setBacklash(const int fd, int bl_min, int bl_sec)
Number vector property descriptor.
Switch vector property descriptor.