33#define DREAMFOCUSER_STEP_SIZE 32
34#define DREAMFOCUSER_ERROR_BUFFER 1024
61 virtual bool ISNewSwitch (
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
96 unsigned char calculate_checksum(DreamFocuserCommand c);
97 bool send_command(
char k, uint32_t l = 0,
unsigned char addr = 0);
99 bool dispatch_command(
char k, uint32_t l = 0,
unsigned char addr = 0);
101 bool getTemperature();
104 bool getMaxPosition();
105 bool setPosition(int32_t position);
106 bool setSync(uint32_t position = 0);
110 float currentTemperature;
111 float currentHumidity;
112 int32_t currentPosition;
113 int32_t currentMaxPosition;
116 unsigned char isParked;
118 DreamFocuserCommand currentResponse;
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
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 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.
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual IPState MoveAbsFocuser(uint32_t ticks) override
MoveFocuser the focuser to an absolute position.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
Implementations for common driver routines.
Interface to the reference INDI C API device implementation on the Device Driver side.