59 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
60 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
81 bool dispatch(
const std::string &request);
95 enum { MOTOR_ENABLE, MOTOR_DISABLE };
102 enum { STATUS_CONNECTED, STATUS_ENABLED };
112 std::unique_ptr<httplib::Client> m_HttpClient;
115 double m_LastMechPosition {-1.0};
118 double m_LastFieldAngle {-1.0};
123 static constexpr int DEFAULT_PORT {8220};
124 static constexpr double POSITION_THRESHOLD {0.01};
The PlaneWaveRotator class provides an INDI driver for the PlaneWave Series 5 rotator,...
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
ISNewNumber.
virtual bool AbortRotator() override
AbortRotator — RotatorInterface virtual.
virtual bool updateProperties() override
updateProperties
PlaneWaveRotator()
Constructor / Destructor.
virtual bool Handshake() override
Handshake — build the persistent HTTP client and verify connectivity.
virtual bool ReverseRotator(bool enabled) override
virtual void TimerHit() override
TimerHit — polling loop.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems
virtual ~PlaneWaveRotator()
virtual const char * getDefaultName() override
getDefaultName
virtual IPState MoveRotator(double angle) override
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
ISNewSwitch.
virtual bool initProperties() override
initProperties