34 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
35 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
61 bool sendCommand(
const char *command,
char *response, std::size_t responseSize,
bool silent =
false);
64 bool setAcceleration(uint32_t acceleration);
65 bool setHold(
bool enabled);
66 void applyMaximumPosition(uint32_t maximum);
68 void markMotionAlert();
75 uint32_t m_LastPosition { 0 };
76 uint32_t m_FixedSpeed { 300 };
77 uint8_t m_CommunicationFailures { 0 };
78 uint8_t m_TemperaturePollCounter { 0 };
79 int m_FirmwareVersion { 0 };
81 static constexpr std::size_t RESPONSE_SIZE = 1024;
82 static constexpr uint8_t IO_TIMEOUT_SECONDS = 3;
83 static constexpr uint8_t MAX_COMMUNICATION_FAILURES = 3;
const char * getDefaultName() override
IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
bool AbortFocuser() override
AbortFocuser all focus motion.
~IKunFocuser() override=default
IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
bool SetFocuserSpeed(int speed) override
SetFocuserSpeed Set Focuser speed.
bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
bool SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Processes incoming new switch states from the client for this device. Handles updates to FocuserInter...
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
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...
bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...