43 virtual bool ISNewSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
44 virtual bool ISNewNumber(
const char * dev,
const char * name,
double values[],
char * names[],
int n)
override;
95 bool sendCommand(
const char *
cmd,
char * res =
nullptr);
96 bool sendCommandSet(
const char *
cmd);
99 void GetFocusParams();
101 bool readSpeedMode();
103 bool readMaxPosition();
104 bool readMaxMovement();
105 bool readSettleBuffer();
106 bool readMoveCurrentMultiplier();
107 bool readHoldCurrentMultiplier();
109 bool readTemperature();
111 void timedMoveCallback();
115 double targetPos { 0 }, lastPos { 0 }, lastTemperature { 0 }, backlashComp {0};
117 bool moveAborted =
false;
138 static const uint8_t DSD_RES { 32 };
139 static const char DSD_DEL {
')' };
140 static const uint8_t DSD_TIMEOUT { 3 };
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveRelFocuser Move focuser for a relative amount of ticks in a specific direction.
virtual bool saveConfigItems(FILE *fp) override
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
virtual ~DeepSkyDadAF3() override=default
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
static void timedMoveHelper(void *context)
virtual IPState MoveFocuser(FocusDirection dir, int speed, uint16_t duration) override
MoveFocuser Move focuser in a specific direction and speed for period of time.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
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
Processes incoming new switch states from the client for this device. Handles updates to FocuserInter...
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
const char * getDefaultName() override
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 IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveAbsFocuser Move to an absolute target position.