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