26 #define MOUNTNOTINITIALIZED 0
27 #define MOUNTINITIALIZED 1
41 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
42 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
54 virtual bool Connect()
override;
59 virtual bool Park()
override;
60 virtual bool UnPark()
override;
62 virtual bool Sync(
double ra,
double dec)
override;
63 virtual bool Goto(
double,
double)
override;
64 virtual bool updateTime(ln_date *utc,
double utc_offset)
override;
65 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
74 virtual int SendPulseCmd(int8_t direction, uint32_t duration_msec)
override;
90 virtual bool SetTrackRate(
double raRate,
double deRate)
override;
144 void syncSideOfPier();
146 bool IsMountInitialized(
bool *initialized);
149 bool getMountStatus(
bool *
isParked);
150 bool getFirmwareVersion(
void);
151 bool calcParkPosition(
ParkPosition pos,
double *parkAlt,
double *parkAz);
152 void disclaimerMessage(
void);
158 double currentAlt = 0, currentAz = 0;
159 double lastRA = 0, lastDE = 0;
160 double lastAZ = 0, lastAL = 0;
167 int rememberSlewRate = { -1 };
bool isParked()
isParked is mount currently parked?
virtual bool initProperties() override
Called to initialize basic properties required all the time.
ISwitchVectorProperty StartUpSP
ISwitchVectorProperty APSlewSpeedSP
virtual bool UnPark() override
Unpark the telescope if already parked.
ISwitchVectorProperty APGuideSpeedSP
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
static void pulseGuideTimeoutHelperWE(void *p)
virtual bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual bool Goto(double, double) override
Move the scope to the supplied RA and DEC coordinates.
virtual bool SetTrackRate(double raRate, double deRate) override
SetTrackRate Set custom tracking rates.
INumber HorizontalCoordsN[2]
ISwitchVectorProperty SwapSP
virtual IPState GuideWest(uint32_t ms) override
Guide west for ms milliseconds. West is defined as RA-.
virtual bool Park() override
Park the telescope to its home position.
void AstroPhysicsGuideTimeoutNS(bool simul)
virtual const char * getDefaultName() override
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
virtual bool Sync(double ra, double dec) override
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
virtual IPState GuideEast(uint32_t ms) override
Guide east for ms milliseconds. East is defined as RA+.
bool updateAPSlewRate(int index)
ISwitchVectorProperty UnparkFromSP
virtual int SendPulseCmd(int8_t direction, uint32_t duration_msec) override
static void simulGuideTimeoutHelperWE(void *p)
void handleGTOCP2MotionBug()
static void pulseGuideTimeoutHelperNS(void *p)
ITextVectorProperty VersionTP
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual bool GuideNS(INDI_DIR_NS dir, TelescopeMotionCommand command)
INumber APSiderealTimeN[1]
INumberVectorProperty APUTCOffsetNP
virtual bool Handshake() override
perform handshake with device to check communication
INumberVectorProperty HorizontalCoordsNP
static void simulGuideTimeoutHelperNS(void *p)
virtual IPState GuideSouth(uint32_t ms) override
Guide south for ms milliseconds. South is defined as DEC-.
ISwitchVectorProperty ParkToSP
virtual bool GuideWE(INDI_DIR_WE dir, TelescopeMotionCommand command)
virtual bool getUTFOffset(double *offset) override
virtual bool Disconnect() override
Disconnect from device.
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
INumberVectorProperty APSiderealTimeNP
virtual bool updateTime(ln_date *utc, double utc_offset) override
Update telescope time, date, and UTC offset.
INumber HourangleCoordsN[2]
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
ISwitchVectorProperty SyncCMRSP
virtual IPState GuideNorth(uint32_t ms) override
Guide north for ms milliseconds. North is defined as DEC+.
void AstroPhysicsGuideTimeoutWE(bool simul)
virtual void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
INumberVectorProperty HourangleCoordsNP
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
virtual bool SetSlewRate(int index) override
SetSlewRate Set desired slew rate index.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
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 ReadScopeStatus() override
Read telescope status.
#define MOUNTNOTINITIALIZED
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.