38 virtual bool ISNewNumber(
const char * dev,
const char * name,
double values[],
char * names[],
int n)
override;
39 virtual bool ISNewSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
97 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
bool silent =
false,
int nret = 0);
100 void GetFocusParams();
104 bool readTemperature();
106 bool readTemperatureCoefficient();
118 bool setSpeed(
int speed);
119 bool setTemperatureCalibration(
double calibration);
120 bool setTemperatureCoefficient(
double coefficient);
121 bool setTemperatureCompensation(
bool enable);
122 void timedMoveCallback();
124 uint32_t targetPos { 0 }, lastPos { 0 }, lastTemperature { 0 };
144 static const uint8_t ML_RES { 32 };
146 static const char ML_DEL {
'#' };
148 static const uint8_t ML_TIMEOUT { 3 };
virtual ~MoonLite() override=default
virtual IPState MoveFocuser(FocusDirection dir, int speed, uint16_t duration) override
MoveFocuser Move focuser in a specific direction and speed for period of time.
virtual bool saveConfigItems(FILE *fp) override
static void timedMoveHelper(void *context)
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool SetFocuserSpeed(int speed) override
SetFocuserSpeed Set Focuser speed.
const char * getDefaultName() override
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set the supplied position as the current focuser position.
virtual bool Handshake() override
Handshake Try to communicate with Focuser and see if there is a valid response.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual 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...
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveAbsFocuser Move to an absolute target position.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
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
MoveRelFocuser Move focuser for a relative amount of ticks in a specific direction.