55 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
56 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
70 bool updateTemperature();
71 bool updateTemperatureSettings();
72 bool updatePosition();
74 bool updateAcceleration();
75 bool updateCustomSettings();
79 bool setSpeed(
unsigned short speed);
80 bool setCustomSettings(
double maxTrip,
double gearRatio);
81 bool setAcceleration(
unsigned short accel);
82 bool setTemperatureSamples(
unsigned int targetSamples,
unsigned int *finalSample);
83 bool setTemperatureCompensation();
85 bool Sync(
unsigned int position);
88 bool moveFocuser(
unsigned int position);
93 bool saveFocuserConfig();
95 void GetFocusParams();
96 float CalcTimeLeft(timeval,
float);
97 void updateFocusMaxRange(
double maxTrip,
double gearRatio);
99 double targetPos { 0 };
100 double lastPos { 0 };
101 double lastTemperature { 0 };
102 double simPosition { 0 };
103 unsigned int currentSpeed { 0 };
104 unsigned int temperatureUpdateCounter { 0 };
107 struct timeval focusMoveStart
111 float focusMoveRequest { 0 };
119 INumber TemperatureSettingN[2];
122 ISwitch TemperatureCompensateS[2];
134 IText VersionT[2] {};
137 FocusCustomSetting fSettings[5];
void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
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.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
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 ~SteelDrive()=default
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
const char * getDefaultName() override
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual IPState MoveRelFocuser(FocusDirection dir, unsigned int ticks) override
virtual bool SetFocuserSpeed(int speed) override
SetFocuserSpeed Set Focuser speed.
virtual bool Handshake() override
perform handshake with device to check communication
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.