19 virtual bool ISNewSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
61 bool sendCommand(
const char *
cmd,
char * res =
nullptr);
64 bool readTemperature();
82 double targetPos { 0 }, lastPos { 0 };
83 double lastTemperature { 0 };
86 static const uint32_t DRIVER_RES { 32 };
88 static const char DRIVER_DEL {
'#' };
89 static const char DRIVER_DEL2 {
' ' };
91 static const uint8_t DRIVER_TIMEOUT { 10 };
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveAbsFocuser Move to an absolute target position.
virtual bool SyncFocuser(uint32_t ticks) override
MoveRelFocuser Move focuser for a relative amount of ticks in a specific direction.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool Handshake() override
Handshake Try to communicate with Focuser and see if there is a valid response.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual ~RBFOCUS() override=default
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
const char * getDefaultName() override
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
Number vector property descriptor.
Switch vector property descriptor.