63 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
64 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
103 bool sendCommand(
const char *
cmd,
char *res =
nullptr,
int cmd_len = -1,
int res_len = -1);
106 bool parseStatus(
const char *response);
109 bool readReverseFlags();
111 void hexDump(
char *buf,
const char *data,
int size);
114 double feedRateFor(
double azMM,
double altMM);
120 bool sendJog(
double azMM,
double altMM);
123 IPState jogWithBacklash(
double azMM,
double altMM);
131 double finalApproachMM(
int axis,
double &mm);
139 bool belowMinimum(
const char *axis,
double degrees);
154 INDI::PropertyNumber FeedRateNP {2};
162 INDI::PropertyNumber MinMoveNP {1};
165 INDI::PropertySwitch AZApproachSP {2};
166 INDI::PropertySwitch ALTApproachSP {2};
174 INDI::PropertyText FirmwareTP {1};
179 bool m_IsMoving {
false};
180 bool m_IsFault {
false};
181 uint8_t m_ReverseFlags {0};
184 Connection::Serial *serialConnection {
nullptr};
189 static constexpr uint8_t DRIVER_TIMEOUT {3};
190 static constexpr uint8_t DRIVER_LEN {128};
191 static constexpr char DRIVER_STOP_CHAR {
'\n'};
bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
bool SetBacklashEnabled(bool enabled) override
SetBacklashEnabled Enable or disable hardware backlash compensation.
bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
bool AbortMotion() override
AbortMotion Abort all axis motion immediately.
IPState MoveAZ(double degrees) override
Move the azimuth axis by the given number of degrees.
IPState MoveBoth(double azDegrees, double altDegrees) override
MoveBoth Move both axes in a single coordinated operation.
bool ReverseAZ(bool enabled) override
ReverseAZ Reverse the direction of azimuth axis movement.
bool ReverseALT(bool enabled) override
ReverseALT Reverse the direction of altitude axis movement.
const char * getDefaultName() override
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual ~AvalonUPAS() override=default
bool SetBacklashAZ(int32_t steps) override
SetBacklashAZ Set the azimuth axis backlash compensation value in steps.
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
IPState MoveALT(double degrees) override
MoveALT Move the altitude axis by the given number of degrees.
bool SetBacklashALT(int32_t steps) override
SetBacklashALT Set the altitude axis backlash compensation value in steps.
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
bool SetPACSpeed(uint16_t speed) override
SetPACSpeed Set the motor speed used for axis movements.
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
*brief user defined string literal for JSON values *sa std::size_t n