39 virtual bool ISNewNumber (
const char * dev,
const char * name,
double values[],
char * names[],
int n)
override;
40 virtual bool ISNewSwitch (
const char * dev,
const char * name,
ISState * states,
char * names[],
int n)
override;
66 bool getFocuserType();
80 bool getTemperature();
83 void abnormalDisconnect();
85 bool setTemperatureOffset(
double offset);
90 bool getLimitSwitchStatus();
92 bool findHome(uint8_t motorTypes);
93 bool isHomingComplete();
95 bool setEncodersEnabled(
bool enable);
97 bool setDisplayBrightness(uint8_t value);
98 bool setSleepBrightness(uint8_t value);
105 INDI::PropertyNumber SyncAuxNP {1};
107 INDI::PropertySwitch AbortAuxSP {1};
109 INDI::PropertyNumber VoltageNP {1};
111 INDI::PropertyNumber TemperatureNP {1};
116 INDI::PropertyNumber FocusStepDelayNP {1};
117 INDI::PropertyNumber RotatorStepDelayNP {1};
118 INDI::PropertyNumber AuxStepDelayNP {1};
120 INDI::PropertyLight LimitSwitchLP {3};
121 enum { ROTATION_SWITCH, OUT_SWITCH, IN_SWITCH };
123 INDI::PropertySwitch HomeSelectionSP {3};
124 INDI::PropertySwitch FindHomeSP {1};
126 INDI::PropertySwitch EncoderSP {2};
128 INDI::PropertyNumber BrightnessNP {2};
129 enum { BRIGHTNESS_DISPLAY, BRIGHTNESS_SLEEP };
132 INDI::PropertyNumber RotatorAbsPosNP {1};
134 INDI::PropertyNumber CustomRotatorStepNP {1};
136 double lastTemperature { 0 };
137 double lastVoltage { 0 };
138 int32_t m_RotatorTicksPerDegree { 0 };
139 int32_t m_RotatorStepsPerRevolution {0};
140 double lastFocuserPosition { 0 };
141 double lastRotatorPosition { 0 };
142 double lastAuxPosition { 0 };
143 double targetPosition { 0 };
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual ~NightCrawler()=default
virtual IPState MoveRotator(double angle) override
MoveRotator Go to specific angle.
const char * getDefaultName() override
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 bool AbortRotator() override
AbortRotator Abort all motion.
virtual bool AbortFocuser() override
AbortFocuser all focus motion.
virtual IPState HomeRotator() override
HomeRotator Go to home position.
virtual IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
static void abnormalDisconnectCallback(void *userpointer)
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 bool SyncRotator(double angle) override
SyncRotator Set current angle as the supplied angle without moving the rotator.
virtual bool saveConfigItems(FILE *fp) override
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool updateProperties() override
Updates the state and definition of properties based on the current connection status....
virtual bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
virtual bool initProperties() override
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
struct _INumberVectorProperty INumberVectorProperty
*brief user defined string literal for JSON values *sa std::size_t n