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;
95 bool sendCommand(
const char *
cmd,
char * res =
nullptr);
96 bool sendCommandSet(
const char *
cmd);
99 void GetFocusParams();
102 bool readMaxPosition();
103 bool readMaxMovement();
104 bool readSettleBuffer();
105 bool readIdleCoilsTimeout();
106 bool readCoilsMode();
107 bool readCurrentMove();
108 bool readCurrentHold();
110 bool readTemperature();
112 void timedMoveCallback();
116 double targetPos { 0 }, lastPos { 0 }, lastTemperature { 0 };
151 static const uint8_t DSD_RES { 32 };
152 static const char DSD_DEL {
')' };
153 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
Process the client newSwitch command.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
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
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
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
Initilize properties initial state and value. The child class must implement this function.
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
static void timedMoveHelper(void *context)
virtual bool Handshake() override
perform handshake with device to check communication
Number vector property descriptor.
Switch vector property descriptor.