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
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
virtual ~RBFOCUS() override=default
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 SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
const char * getDefaultName() override
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
Number vector property descriptor.
Switch vector property descriptor.