43 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
44 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
66 bool setMinLimit(uint32_t limit);
67 bool setMaxLimit(uint32_t limit);
68 bool updateMaxLimit();
70 bool updateTemperature();
71 bool updatePosition();
72 bool updateVoltageIn();
74 void setConnectionParams();
75 bool initCommandSet();
77 bool getStartupValues();
78 void hexDump(
char * buf,
const char * data,
int size);
79 bool isMotionComplete();
81 uint16_t m_TemperatureCounter { 0 };
98 ESATTO_FIRMWARE_VERSION,
100 ARCO_FIRMWARE_VERSION,
120 ISwitch BacklashMeasurementS[2];
127 IText BacklashMessageT[1] {};
129 typedef enum { BacklashIdle, BacklashMinimum, BacklashMaximum, BacklashComplete } BacklashStage;
130 BacklashStage bStage { BacklashIdle };
137 ROTATOR_ABSOLUTE_POSITION
141 IText RotCalibrationMessageT[1] {};
144 typedef enum { RotCalIdle, RotCalComplete } RotCalibrationStage;
145 RotCalibrationStage rcStage { RotCalIdle };
151 ARCO_CALIBRATION_START
154 std::unique_ptr<PrimalucaLabs::Esatto> m_Esatto;
155 std::unique_ptr<PrimalucaLabs::Arco> m_Arco;
157 static constexpr uint8_t TEMPERATURE_FREQUENCY {10};
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
const char * getDefaultName() override
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual IPState MoveRotator(double angle) override
MoveRotator Go to specific angle.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
virtual bool SyncRotator(double angle) override
SyncRotator Set current angle as the supplied angle without moving the rotator.
virtual bool AbortRotator() override
AbortRotator Abort all motion.
virtual bool Handshake() override
perform handshake with device to check communication
virtual ~EsattoArco() override=default
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.