21#ifndef TEENASTRO_FOCUSER_H
22#define TEENASTRO_FOCUSER_H
35 virtual bool ISNewNumber (
const char *dev,
const char *name,
double values[],
char *names[],
int n);
36 virtual bool ISNewSwitch (
const char *dev,
const char *name,
ISState *states,
char *names[],
int n);
70 bool send(
const char *
const msg);
73 bool sendAndReceive(
const char *
const msg,
char *resp,
int bufsize);
111 bool goTo(uint32_t position);
ISwitchVectorProperty RebootDeviceSP
bool setManualSpeed(uint32_t value)
void deleteOtherProperties()
ISwitchVectorProperty CfgMotorMicrostepsSP
bool setMotorCurrent(uint32_t value)
bool setManualAcc(uint32_t value)
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Processes incoming new switch states from the client for this device. Handles updates to FocuserInter...
bool sendAndReceiveBool(const char *const msg)
INDI::PropertyNumber CfgMotorCurrentNP
bool setConfigItem(char item, uint32_t deviceValue)
void deleteMainControlProperties()
void defineOtherProperties()
virtual bool AbortFocuser()
AbortFocuser all focus motion.
virtual void TimerHit()
Callback function to be called once SetTimer duration elapses.
bool saveConfigItems(FILE *fp)
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Processes incoming new number values from the client for this device. Handles updates to FocuserInter...
bool setMotorStepsPerRevolution(uint32_t value)
INDI::PropertyNumber CfgManualSpeedNP
bool send(const char *const msg)
INumberVectorProperty TempNP
INDI::PropertyNumber CfgMotorResolutionNP
void initPositionPropertiesRanges(uint32_t maxPos)
bool ReverseFocuser(bool enable)
ReverseFocuser Reverse focuser motion direction.
virtual bool SyncFocuser(uint32_t value)
SyncFocuser Set current position to ticks without moving the focuser.
void defineMainControlProperties()
INDI::PropertyNumber CfgManualAccNP
bool setMotorMicrosteps(uint32_t value)
bool setMotorResolution(uint32_t value)
ITextVectorProperty DeviceVersionTP
INDI::PropertyNumber CfgManualDecNP
ISwitchVectorProperty GoToParkSP
const char * getDefaultName()
bool SetFocuserMaxPosition(uint32_t value)
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
bool sendAndReceive(const char *const msg, char *resp, int bufsize)
ISwitchVectorProperty EraseEEPROMSP
bool updateDeviceVersion()
bool sendAndExpectTimeout(const char *const msg, char *resp, int bufsize)
ISwitch CfgMotorMicrostepsS[TAF_MICROS_N]
INDI::PropertyNumber CfgGoToAccNP
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks)
MoveFocuser the focuser to an relative position.
virtual bool updateProperties()
Updates the state and definition of properties based on the current connection status....
bool SetFocuserSpeed(int value)
SetFocuserSpeed Set Focuser speed.
bool setParkPos(uint32_t value)
bool setManualDec(uint32_t value)
INumberVectorProperty CurSpeedNP
virtual IPState MoveAbsFocuser(uint32_t ticks)
MoveFocuser the focuser to an absolute position.
INDI::PropertyNumber CfgMotorStepsPerRevolutionNP
virtual bool initProperties()
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
INDI::PropertyNumber CfgParkPosNP
virtual bool Handshake()
Performs a device-specific handshake after a connection is established. This method should be overrid...
bool ISNewNumberHelper(INDI::PropertyNumber &NP, double values[], char *names[], int n, bool res)
bool updateMotionConfig()
bool goTo(uint32_t position)
bool setGoToAcc(uint32_t value)
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.