47 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
48 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
49 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
55 virtual bool Abort()
override;
58 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
59 virtual bool updateTime(ln_date *utc,
double utc_offset)
override;
62 virtual bool Goto(
double ra,
double dec)
override;
63 virtual bool Sync(
double ra,
double dec)
override;
67 virtual bool SetTrackRate(
double raRate,
double deRate)
override;
73 virtual bool Park()
override;
74 virtual bool UnPark()
override;
84 bool enableAxis(
int axis,
bool enable);
85 double getSlewRateArcsecPerSec()
const;
94 bool dispatch(
const std::string &request);
107 INDI::PropertyNumber AltAzNP {2};
108 enum { AZ_VALUE, ALT_VALUE };
111 INDI::PropertyNumber Axis0TelemetryNP {4};
112 INDI::PropertyNumber Axis1TelemetryNP {4};
116 TELEMETRY_DIST_TO_TARGET,
117 TELEMETRY_SERVO_ERROR,
118 TELEMETRY_MOTOR_CURRENT
122 INDI::PropertyNumber DistanceToSunNP {1};
129 INDI::PropertySwitch Axis0MotorSP {2};
131 INDI::PropertySwitch Axis1MotorSP {2};
134 INDI::PropertySwitch FindHomeSP {1};
141 INDI::PropertyText ModelFilenameTP {1};
144 INDI::PropertyNumber ModelInfoNP {3};
145 enum { MODEL_POINTS_TOTAL, MODEL_POINTS_ENABLED, MODEL_RMS_ERROR };
148 INDI::PropertySwitch ModelOperationSP {2};
149 enum { MODEL_SAVE_AS_DEFAULT, MODEL_CLEAR_POINTS };
152 INDI::PropertyText ModelLoadFilenameTP {1};
155 INDI::PropertyText ModelSaveFilenameTP {1};
162 INDI::PropertyNumber SlewTimeConstantNP {1};
169 ini::IniSectionBase<std::less<std::basic_string<char>>> m_Status;
172 std::unique_ptr<httplib::Client> m_HttpClient;
180 static constexpr double SLEW_RATES[4] {7.5, 30.0, 120.0, 750.0};
182 static constexpr const char *MODEL_TAB {
"Pointing Model"};
virtual bool UnPark() override
UnPark — re-enable both motors before clearing the parked state.
virtual bool Abort() override
Abort.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
virtual bool Sync(double ra, double dec) override
Sync — adds a pointing-model calibration point at the current position.
virtual bool Goto(double ra, double dec) override
Goto — J2000 RA/Dec (INDI convention).
virtual bool SetTrackRate(double raRate, double deRate) override
SetTrackRate — called when the user changes TrackRateNP.
virtual bool Park() override
Park.
virtual bool updateProperties() override
updateProperties
virtual bool SetDefaultPark() override
SetDefaultPark.
virtual bool Handshake() override
Handshake — build the persistent client and verify the mount is live.
virtual bool initProperties() override
initProperties
virtual const char * getDefaultName() override
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
MoveNS — jog in Dec using a continuous offset rate.
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
ISNewText.
virtual bool updateTime(ln_date *utc, double utc_offset) override
updateTime — PWI4 uses the host PC clock; nothing to push.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
ISNewNumber.
PlaneWave()
Constructor / Destructor.
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
MoveWE — jog in RA using a continuous offset rate.
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems
virtual bool ReadScopeStatus() override
ReadScopeStatus — called every polling interval.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
ISNewSwitch.
virtual bool SetCurrentPark() override
SetCurrentPark — tell PWI4 to store the current position as the park point.
*brief user defined string literal for JSON values *sa std::size_t n