Instrument Neutral Distributed Interface INDI
1.9.5
|
Go to the documentation of this file.
37 #define LYNXFOCUS_MAX_RETRIES 1
38 #define LYNXFOCUS_TIMEOUT 3
39 #define LYNXFOCUS_MAXBUF 16
40 #define LYNXFOCUS_TEMPERATURE_FREQ 20
41 #define LYNXFOCUS_POSITION_THRESHOLD 5
43 #define FOCUS_SETTINGS_TAB "Settings"
44 #define FOCUS_STATUS_TAB "Status"
45 #define HUB_SETTINGS_TAB "Device"
89 virtual bool loadConfig(
bool silent,
const char *property)
override;
91 virtual bool ISNewNumber(
const char *dev,
const char *
name,
double values[],
char *names[],
int n)
override;
92 virtual bool ISNewSwitch(
const char *dev,
const char *
name,
ISState *states,
char *names[],
int n)
override;
93 virtual bool ISNewText(
const char *dev,
const char *
name,
char *texts[],
char *names[],
int n)
override;
100 virtual int getVersion(
int *major,
int *minor,
int *sub);
137 uint32_t simPosition;
138 uint32_t targetPosition;
141 bool simCompensationOn;
144 std::map<std::string, std::string> lynxModels;
146 struct timeval focusMoveStart;
147 float focusMoveRequest;
150 bool getFocusConfig();
151 bool getFocusStatus();
157 bool setStepSize(u_int16_t stepsize);
160 bool setTemperatureCompensation(
bool enable);
161 bool setTemperatureCompensationMode(
char mode);
162 bool setTemperatureCompensationCoeff(
char mode, int16_t coeff);
163 bool setTemperatureInceptions(
char mode, int32_t inter);
164 bool setTemperatureCompensationOnStart(
bool enable);
172 bool setLedLevel(
int level);
175 bool setDeviceNickname(
const char *nickname);
179 float calcTimeLeft(timeval,
float);
188 ISwitch TemperatureCompensateS[2];
192 ISwitch TemperatureCompensateOnStartS[2];
196 ISwitch TemperatureCompensateModeS[5];
224 IText HFocusNameT[1] {};
230 bool m_HomeOnStart {
false};
232 static const uint8_t LYNX_MAX { 64 };
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
const char * getFocusTarget()
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
virtual bool Handshake() override
perform handshake with device to check communication
virtual IPState MoveAbsFocuser(uint32_t targetPosition) override
MoveFocuser the focuser to an absolute position.
Light vector property descriptor.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
Implementations for common driver routines.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
INumberVectorProperty LedNP
virtual bool SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Update focuser maximum position. It only updates the PresetNP property limits.
virtual bool loadConfig(bool silent, const char *property) override
Load the last saved configuration file.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual int getVersion(int *major, int *minor, int *sub)
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
Text vector property descriptor.
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
virtual IPState MoveFocuser(FocusDirection dir, int speed, uint16_t duration) override
MoveFocuser the focuser in a particular direction with a specific speed for a finite duration.
virtual bool SetFocuserBacklashEnabled(bool enabled) override
SetFocuserBacklashEnabled Enables or disables the focuser backlash compensation.
Number vector property descriptor.
void setFocusTarget(const char *target)
virtual void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
bool setDeviceType(int index)
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual const char * getDefaultName() override
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
bool configurationComplete
Switch vector property descriptor.
ISwitchVectorProperty ModelSP