35 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
48 typedef unsigned char Flags;
60 STATUS_SERIAL_FRAMING_ERROR = 0,
61 STATUS_SERIAL_OVERRUN_ERROR,
62 STATUS_MOTOR_ENCODE_ERROR,
63 STATUS_AT_ZERO_POSITION,
64 STATUS_AT_MAX_POSITION,
70 SerFramingError = 0x02,
71 SerOverrunError = 0x04,
72 MotorEncoderError = 0x08,
73 AtZeroPosition = 0x40,
80 return (state == Idle);
82 bool SFisMoving()
const
90 bool send(
const char *command,
const size_t nbytes,
const char *from,
const bool log_error =
true);
91 bool recv(
char *respons,
const size_t nbytes,
const char *from,
const bool log_error =
true);
virtual bool Handshake() override
perform handshake with device to check communication
const char * getDefaultName() override
virtual IPState MoveAbsFocuser(uint32_t targetPosition) override
MoveFocuser the focuser to an absolute position.
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 MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
Light vector property descriptor.
Number vector property descriptor.