53 virtual bool ISNewSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
58 virtual bool Connect()
override;
80 void timedMoveCallback();
86 int targetSpeed { 1 };
87 struct timeval timedMoveEnd;
94 static const uint16_t FC_TIMEOUT { 1000 };
96 static const uint8_t FC_LED_RED { 0x10 };
97 static const uint8_t FC_LED_ON { 0x20 };
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual bool Disconnect() override
Disconnect from device.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
const char * getDefaultName() override
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual bool SetFocuserSpeed(int speed) override
SetFocuserSpeed Set Focuser speed.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
static void timedMoveHelper(void *context)
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual IPState MoveFocuser(FocusDirection dir, int speed, uint16_t duration) override
MoveFocuser the focuser in a particular direction with a specific speed for a finite duration.
Switch vector property descriptor.