45 virtual bool ISNewSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
46 virtual bool ISNewNumber(
const char * dev,
const char * name,
double values[],
char * names[],
int n)
override;
97 bool sendCommand(
const char *
cmd,
char * res =
nullptr);
98 bool sendCommandSet(
const char *
cmd);
101 void GetFocusParams();
104 bool readMaxPosition();
105 bool readMaxMovement();
106 bool readSettleBuffer();
107 bool readIdleCoilsTimeout();
108 bool readCoilsMode();
109 bool readCurrentMove();
110 bool readCurrentHold();
112 bool readTemperature();
114 void timedMoveCallback();
118 double targetPos { 0 }, lastPos { 0 }, lastTemperature { 0 };
146 static const uint8_t DSD_RES { 32 };
147 static const char DSD_DEL {
')' };
148 static const uint8_t DSD_TIMEOUT { 3 };
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
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 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 void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual ~DeepSkyDadAF2() override=default
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool saveConfigItems(FILE *fp) override
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveAbsFocuser Move to an absolute target position.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
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 IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveRelFocuser Move focuser for a relative amount of ticks in a specific direction.
const char * getDefaultName() override
virtual bool SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
static void timedMoveHelper(void *context)
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...