67 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
68 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
69 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
108 uint32_t focuserSimPosition = 0;
109 uint32_t rotatorSimPosition = 0;
110 uint32_t rotatorSimPA = 0;
111 uint32_t targetFocuserPosition = 0;
112 uint32_t targetRotatorPosition = 0;
113 uint32_t targetRotatorAngle = 0;
114 uint32_t maxControllerTicks = 0;
119 bool simCompensationOn;
122 struct timeval focusMoveStart;
123 float focusMoveRequest;
130 bool getFocusConfig();
131 bool getFocusStatus();
136 bool setFocusPosition(uint16_t position);
139 bool setTemperatureCompensation(
bool enable);
140 bool setTemperatureCompensationMode(
char mode);
141 bool setTemperatureCompensationCoeff(
char mode, int16_t coeff);
142 bool setTemperatureCompensationOnStart(
bool enable);
146 bool setBacklashCompensationSteps(
DeviceType type, uint16_t steps);
198 bool isFocuserAbsolute;
199 bool isFocuserHoming;
206 bool getRotatorConfig();
207 bool getRotatorStatus();
209 IPState MoveAbsRotatorTicks(uint32_t targetTicks);
210 IPState MoveAbsRotatorAngle(
double angle);
211 bool reverseRotator(
bool enable);
246 bool isRotatorHoming;
253 bool setLedLevel(
int level);
260 float calcTimeLeft(timeval,
float);
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool saveConfigItems(FILE *fp) override
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual IPState HomeRotator() override
HomeRotator Go to home position.
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 ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Processes incoming new text values from the client for this device. Delegates processing to the contr...
virtual bool SetFocuserBacklashEnabled(bool enabled) override
SetFocuserBacklashEnabled Enables or disables the focuser backlash compensation.
bool focuserConfigurationComplete
virtual IPState MoveRotator(double angle) override
MoveRotator Go to specific angle.
bool rotatorConfigurationComplete
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 updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool SetRotatorBacklashEnabled(bool enabled) override
SetRotatorBacklashEnabled Enables or disables the Rotator backlash compensation.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
virtual bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
virtual IPState MoveAbsFocuser(uint32_t targetPosition) 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 bool SetRotatorBacklash(int32_t steps) override
SetRotatorBacklash Set the Rotatorer backlash compensation value.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
virtual const char * getDefaultName() override
INDI::PropertySwitch AbortRotatorSP
Number vector property descriptor.
Switch vector property descriptor.