50 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
51 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
85 bool sendCommand(
const char *
cmd,
char *res =
nullptr,
int cmd_len = -1,
int res_len = -1);
88 bool parseStatus(
const char *response);
90 void hexDump(
char *buf,
const char *data,
int size);
110 bool m_IsMoving {
false};
111 uint8_t m_ReverseFlags {0};
119 static constexpr uint8_t DRIVER_TIMEOUT {3};
120 static constexpr uint8_t DRIVER_LEN {128};
121 static constexpr char DRIVER_STOP_CHAR {
'\n'};
The AvalonUPAS class drives the Avalon Instruments Universal Polar Alignment System (UPAS) via its GR...
bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
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
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 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.
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
Class to provide extended functionality for devices in addition to the functionality provided by INDI...