32 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
33 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
49 unsigned char CheckSum(
char *rf_cmd);
50 unsigned char CalculateSum(
const char *rf_cmd);
51 int SendCommand(
char *rf_cmd);
52 int ReadResponse(
char *buf);
53 void GetFocusParams();
55 int updateRFPosition(
double *value);
56 int updateRFTemperature(
double *value);
57 int updateRFBacklash(
double *value);
58 int updateRFFirmware(
char *rf_cmd);
59 int updateRFMotorSettings(
double *duty,
double *delay,
double *ticks);
60 int updateRFPositionRelativeInward(
double value);
61 int updateRFPositionRelativeOutward(
double value);
62 int updateRFPositionAbsolute(
double value);
63 int updateRFPowerSwitches(
int s,
int new_sn,
int *cur_s1LL,
int *cur_s2LR,
int *cur_s3RL,
int *cur_s4RR);
64 int updateRFMaxPosition(
double *value);
65 int updateRFSetPosition(
const double *value);
67 int ReadUntilComplete(
char *buf,
int timeout);
70 double targetPos { 0 };
71 double simulatedTemperature { 0 };
72 double simulatedPosition { 0 };
89 INumber SetRegisterPositionN[1];
virtual bool saveConfigItems(FILE *fp) override
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Processes incoming new number values from the client for this device. Handles updates to FocuserInter...
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
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 ~RoboFocus() override=default
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
const char * getDefaultName() override
Number vector property descriptor.
Switch vector property descriptor.