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
Process the client newNumber command.
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
perform handshake with device to check communication
bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
const char * getDefaultName() override
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
Number vector property descriptor.