39#define Q_STEPPER_POS 1
40#define Q_STEPS_TO_GO 2
68#define U_STEPPER_MODE 7
73#define U_BUZ_ENABLED 12
75#define U_DC_REVERSED 14
104 virtual bool ISNewNumber (
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
105 virtual bool ISNewSwitch (
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
106 virtual bool ISNewText(
const char * dev,
const char * name,
char * texts[],
char * names[],
int n)
override;
133 virtual bool Handshake();
136 bool updateSettings(
const char * getCom,
const char * setCom,
int index,
const char * value);
137 bool updateSettings(
const char * getCom,
const char * setCom, std::map<int, std::string> values);
138 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
139 std::string doubleToStr(
double val);
142 int32_t calculateBacklash(uint32_t targetTicks);
143 char stopChar { 0xA };
144 bool backlashEnabled =
false;
145 int32_t backlashSteps = 0;
146 bool requireBacklashReturn =
false;
148 IText PowerControlsLabelsT[3];
171 POW_VIN, POW_VREG, POW_ITOT, POW_AH, POW_WH
186 FS_SPEED, FS_STEP_SIZE, FS_COMPENSATION, FS_COMP_THRESHOLD
192 FS_MODE_UNI, FS_MODE_BI, FS_MODE_MICRO
199 FS_COMP_AUTO, FS_COMP_MANUAL
206 FS_MANUAL_ON, FS_MANUAL_OFF
219 SET_AREF_COEFF, SET_OVER_TIME, SET_OVER_VOLT, SET_OVER_AMP
238 static constexpr const char *POWER_TAB {
"Power"};
239 static constexpr const char *ENVIRONMENT_TAB {
"Environment"};
240 static constexpr const char *SETTINGS_TAB {
"Settings"};
241 static constexpr const char *DCFOCUSER_TAB {
"DC Focuser"};
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
Provides interface to implement focuser functionality.
Provides interface to implement weather reporting and safety monitoring functionality.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
virtual bool SetFocuserMaxPosition(uint32_t ticks) override
SetFocuserMaxPosition Set Focuser Maximum position limit in the hardware.
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
virtual bool SetFocuserBacklash(int32_t steps) override
SetFocuserBacklash Set the focuser backlash compensation value.
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
Focuser interface.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool sendCommand(const char *cmd, char *res)
Serial commands.
virtual bool initProperties() override
Overrides.
virtual bool SetFocuserBacklashEnabled(bool enabled) override
SetFocuserBacklashEnabled Enables or disables the focuser backlash compensation.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
IndiAstrolink4()
Constructor.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual const char * getDefaultName() override
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool ReverseFocuser(bool enabled) override
ReverseFocuser Reverse focuser motion direction.
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.