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);
131 enum { ROTATION_SWITCH, OUT_SWITCH, IN_SWITCH };
143 enum { BRIGHTNESS_DISPLAY, BRIGHTNESS_SLEEP };
151 double lastTemperature { 0 };
152 double lastVoltage { 0 };
153 int32_t m_RotatorTicksPerDegree { 0 };
154 int32_t m_RotatorStepsPerRevolution {0};
155 double lastFocuserPosition { 0 };
156 double lastRotatorPosition { 0 };
157 double lastAuxPosition { 0 };
158 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
Process the client newSwitch command.
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
perform handshake with device to check communication
static void abnormalDisconnectCallback(void *userpointer)
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool SyncRotator(double angle) override
SyncRotator Set current angle as the supplied angle without moving the rotator.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
Light vector property descriptor.
Number vector property descriptor.
Switch vector property descriptor.