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
Performs a device-specific handshake after a connection is established. This method should be overrid...
const char * getDefaultName() override
virtual IPState MoveAbsFocuser(uint32_t targetPosition) override
MoveFocuser the focuser to an absolute position.
bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
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
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Processes incoming new number values from the client for this device. Handles updates to FocuserInter...
Light vector property descriptor.
Number vector property descriptor.