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);
98 enum { SENSOR_TEMPERATURE };
106 double lastTemperature { 0 };
107 int timeToReadTemperature = 0;
108 double rotatorTicksPerDegree { 0 };
109 double rotatorDegreesPerTick = 0.0;
110 uint32_t lastFocuserPosition { 0 };
111 bool haveReadFocusPositionAtLeastOnce =
false;
112 uint32_t lastRotatorPosition { 0 };
113 bool haveReadRotatorPositionAtLeastOnce =
false;
114 uint32_t targetPosition { 0 };
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
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
Process the client newNumber command.
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
Process the client newSwitch command.
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
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool Handshake() override
perform handshake with device to check communication
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual ~Integra()=default
const int wellKnownIntegra85FocusMax
Number vector property descriptor.
Switch vector property descriptor.