36 #define MOUNTNOTINITIALIZED 0
37 #define MOUNTINITIALIZED 1
51 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
52 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
64 virtual bool Connect()
override;
69 virtual bool Park()
override;
70 virtual bool UnPark()
override;
72 virtual bool Sync(
double ra,
double dec)
override;
73 virtual bool Goto(
double,
double)
override;
74 virtual bool updateTime(ln_date *utc,
double utc_offset)
override;
75 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
83 virtual int SendPulseCmd(int8_t direction, uint32_t duration_msec)
override;
99 virtual bool SetTrackRate(
double raRate,
double deRate)
override;
169 void initRateLabels();
170 bool updateAPLocation(
double latitude,
double longitude,
double elevation);
173 void setMajorMinorVersions(
char *version);
176 void syncSideOfPier();
179 bool getFirmwareVersion(
void);
180 bool calcParkPosition(
ParkPosition pos,
double *parkAlt,
double *parkAz);
181 void disclaimerMessage(
void);
182 bool getWormPosition(
void);
184 void processMountStatus(
const char *statusString);
185 bool APSync(
double ra,
double dec,
bool recalibrate =
true);
193 double currentAlt = 0, currentAz = 0;
194 double lastRA = 0, lastDE = 0;
195 double lastAZ = 0, lastAL = 0;
197 int rememberSlewRate = { -1 };
199 bool apIsInitialized =
false;
200 bool apLocationInitialized =
false;
201 bool apTimeInitialized =
false;
202 bool apInitializationChecked =
false;
bool isParked()
isParked is mount currently parked?
TelescopePECState getPECState()
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool initProperties() override
Called to initialize basic properties required all the time.
ITextVectorProperty APMountStatusTP
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
ISwitchVectorProperty APSlewSpeedSP
virtual IPState GuideNorth(uint32_t ms) override
Guide north for ms milliseconds. North is defined as DEC+.
INumber HorizontalCoordsN[2]
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
virtual bool Handshake() override
perform handshake with device to check communication
virtual IPState GuideWest(uint32_t ms) override
Guide west for ms milliseconds. West is defined as RA-.
INumberVectorProperty HourangleCoordsNP
ISwitchVectorProperty ParkToSP
void AstroPhysicsGuideTimeoutNS(bool simul)
ITextVectorProperty APPECStateTP
ITextVectorProperty VersionTP
INumberVectorProperty HorizontalCoordsNP
virtual bool GuideNS(INDI_DIR_NS dir, TelescopeMotionCommand command)
ISwitch HomeAndReSyncS[1]
virtual bool Park() override
Park the telescope to its home position.
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
static void pulseGuideTimeoutHelperWE(void *p)
INumberVectorProperty APSiderealTimeNP
virtual bool getUTFOffset(double *offset) override
INumberVectorProperty APUTCOffsetNP
INumber APSiderealTimeN[1]
virtual bool Sync(double ra, double dec) override
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
static void pulseGuideTimeoutHelperNS(void *p)
virtual int SendPulseCmd(int8_t direction, uint32_t duration_msec) override
virtual bool Goto(double, double) override
Move the scope to the supplied RA and DEC coordinates.
ISwitchVectorProperty SwapSP
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual IPState GuideEast(uint32_t ms) override
Guide east for ms milliseconds. East is defined as RA+.
ISwitchVectorProperty APGuideSpeedSP
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
virtual bool SetTrackRate(double raRate, double deRate) override
SetTrackRate Set custom tracking rates.
static void simulGuideTimeoutHelperNS(void *p)
ISwitchVectorProperty ManualSetParkedSP
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
ISwitchVectorProperty StartUpSP
virtual IPState GuideSouth(uint32_t ms) override
Guide south for ms milliseconds. South is defined as DEC-.
APRateTableState rateTable
ISwitchVectorProperty APPECRecordSP
bool homeAndReSyncEnabled
ISwitchVectorProperty SyncCMRSP
ISwitchVectorProperty UnparkFromSP
virtual bool ReadScopeStatus() override
Read telescope status.
ISwitchVectorProperty HomeAndReSyncSP
virtual bool Disconnect() override
Disconnect from device.
void AstroPhysicsGuideTimeoutWE(bool simul)
void handleGTOCP2MotionBug()
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
virtual bool SetSlewRate(int index) override
SetSlewRate Set desired slew rate index.
INumber HourangleCoordsN[2]
INumberVectorProperty APWormPositionNP
virtual bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual bool GuideWE(INDI_DIR_WE dir, TelescopeMotionCommand command)
virtual bool updateTime(ln_date *utc, double utc_offset) override
Update telescope time, date, and UTC offset.
static void simulGuideTimeoutHelperWE(void *p)
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
ISwitch ManualSetParkedS[1]
INumber APWormPositionN[1]
virtual const char * getDefaultName() override
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.