55 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
65 bool readTemperature();
66 bool readMotorSettings();
67 bool setMotorSettings(
double onTime,
double offTime,
double fastDelay);
70 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
71 bool getStartupValues();
72 void hexDump(
char * buf,
const char * data,
int size);
93 uint16_t m_TargetPosition { 0 };
94 uint16_t m_TemperatureCounter { 0 };
99 static constexpr const char * SETTINGS_TAB =
"Settings";
101 static const char NFOCUS_STOP_CHAR { 0x23 };
104 static constexpr const uint8_t NFOCUS_TEMPERATURE_FREQ {10};
106 static constexpr const uint8_t NFOCUS_TIMEOUT {3};
108 static constexpr const uint8_t NFOCUS_LEN {64};
The NFocus class Handles communication and control with nFocus DC focuser.
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...
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
bool saveConfigItems(FILE *fp) override
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
const char * getDefaultName() override
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
Number vector property descriptor.