35 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
50 virtual bool Park()
override;
51 virtual bool UnPark()
override;
53 virtual bool Sync(
double ra,
double dec)
override;
54 virtual bool Goto(
double,
double)
override;
55 virtual bool updateTime(ln_date *utc,
double utc_offset)
override;
56 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
59 virtual int SendPulseCmd(int8_t direction, uint32_t duration_msec)
override;
66 virtual bool SetTrackRate(
double raRate,
double deRate)
override;
104 void syncSideOfPier();
106 bool timeUpdated =
false, locationUpdated =
false;
109 double currentAlt = 0, currentAz = 0;
110 double lastRA = 0, lastDE = 0;
111 double lastAZ = 0, lastAL = 0;
113 bool motionCommanded =
true;
114 bool mountInitialized =
false;
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 SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual bool Handshake() override
perform handshake with device to check communication
virtual const char * getDefaultName() override
ITextVectorProperty VersionTP
ISwitchVectorProperty APSlewSpeedSP
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
ISwitchVectorProperty APGuideSpeedSP
INumberVectorProperty HourangleCoordsNP
virtual bool updateTime(ln_date *utc, double utc_offset) override
Update telescope time, date, and UTC offset.
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
INumber HourangleCoordsN[2]
void handleGTOCP2MotionBug()
virtual bool Disconnect() override
Disconnect from device.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
LX200AstroPhysicsGTOCP2()
ISwitchVectorProperty SyncCMRSP
virtual int SendPulseCmd(int8_t direction, uint32_t duration_msec) override
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
INumberVectorProperty HorizontalCoordsNP
virtual bool getUTFOffset(double *offset) override
virtual void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool SetTrackRate(double raRate, double deRate) override
SetTrackRate Set custom tracking rates.
~LX200AstroPhysicsGTOCP2()
INumber HorizontalCoordsN[2]
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool ReadScopeStatus() override
Read telescope status.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual bool Park() override
Park the telescope to its home position.
virtual bool Sync(double ra, double dec) override
Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.
ISwitchVectorProperty SwapSP
virtual bool SetSlewRate(int index) override
SetSlewRate Set desired slew rate index.
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool Goto(double, double) override
Move the scope to the supplied RA and DEC coordinates.
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.