52 virtual bool ISNewNumber (
const char * dev,
const char * name,
double values[],
char * names[],
int n)
override;
53 virtual bool ISNewSwitch (
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
72 bool genericIntegraCommand(
const char *name,
const char *
cmd,
const char *expectStart,
char *returnValueString);
73 bool integraGetCommand(
const char *name,
int command,
char *returnValueString );
74 bool integraMotorGetCommand(
const char *name,
int command,
MotorType motor,
char *returnValueString);
75 bool integraMotorSetCommand(
const char *name,
int command,
MotorType motor,
int value,
char *returnValueString);
77 bool getFocuserType();
79 bool relativeGotoMotor(
MotorType type, int32_t relativePosition);
83 bool getTemperature();
86 bool isHomingComplete();
87 void cleanPrint(
const char *
cmd,
char *cleancmd);
90 uint32_t rotatorDegreesToTicks(
double angle);
91 double rotatorTicksToDegrees(uint32_t ticks);
102 enum { SENSOR_TEMPERATURE };
108 double lastTemperature { 0 };
109 int timeToReadTemperature = 0;
110 double rotatorTicksPerDegree { 0 };
111 double rotatorDegreesPerTick = 0.0;
112 uint32_t lastFocuserPosition { 0 };
113 bool haveReadFocusPositionAtLeastOnce =
false;
114 uint32_t lastRotatorPosition { 0 };
115 bool haveReadRotatorPositionAtLeastOnce =
false;
116 uint32_t targetPosition { 0 };
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
const char * getDefaultName() override
virtual bool AbortRotator() override
AbortRotator Abort all motion.
virtual bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
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 IPState MoveRotator(double angle) override
MoveRotator Go to specific angle.
const int wellKnownIntegra85RotateMax
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 SyncRotator(double angle) override
SyncRotator Set current angle as the supplied angle without moving the rotator.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
virtual bool saveConfigItems(FILE *fp) override
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual ~Integra()=default
const int wellKnownIntegra85FocusMax