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
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
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
Process the client newNumber command.
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
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
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
Process the client newSwitch command.
virtual ~RoboFocus() override=default
virtual bool Handshake() override
perform handshake with device to check communication
const char * getDefaultName() override
Number vector property descriptor.
Switch vector property descriptor.