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;
128 INumber MoveCurrentMultiplierN[1];
132 INumber HoldCurrentMultiplierN[1];
148 static const uint8_t DSD_RES { 32 };
149 static const char DSD_DEL {
')' };
150 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
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
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
perform handshake with device to check communication
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
Process the client newSwitch command.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
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 IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveAbsFocuser Move to an absolute target position.
Number vector property descriptor.
Switch vector property descriptor.