33 #define INITIAL_GUIDE_RATE 0.50
49 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
50 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
51 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
56 virtual bool Abort()
override;
57 virtual bool Goto(
double,
double)
override;
58 virtual bool Sync(
double ra,
double dec)
override;
60 virtual bool Park()
override;
61 virtual bool UnPark()
override;
64 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
77 bool selectSlewRate(
int index);
78 bool isSlewComplete();
79 void slewError(
int slewCode);
81 bool SetGuideRate(
float);
83 bool getLocalDate(
char *dateString);
84 bool setLocalDate(uint8_t days, uint8_t months, uint16_t years);
86 bool getSiteIndex(
int *ndxP);
87 bool getSlewRate(
int *srP);
88 bool setSite(
int ndx);
89 bool getSiteElevation(
int *elevationP);
90 bool setSiteElevation(
double elevation);
91 bool getLocation(
void);
94 bool getLocalTime(
char *timeString);
95 bool setLocalTime24(uint8_t hour, uint8_t minute, uint8_t second);
98 bool setUTCOffset(
double offset);
99 bool getUTFOffset(
double * offset);
101 void handleStatusChange(
void);
102 void SendPulseCmd(int8_t direction, uint32_t duration_msec);
103 void sendCommand(
const char *
cmd);
104 void updateMountStatus(
char);
105 void updateSlewRate(
void);
108 bool sendScopeTime();
109 bool sendScopeLocation();
123 IText VersionT[5] {};
137 int currentSiteNum {0};
141 IText SiteNameT[1] {};
145 IText ErrorStatusT[1] {};
147 double targetRA = 0, targetDEC = 0;
148 double currentRA = 0, currentDEC = 0;
149 uint32_t DBG_SCOPE = 0;
152 const char *statusCommand;
153 const char *guideSpeedCommand;
virtual const char * getDriverName() override
virtual bool Goto(double, double) override
Move the scope to the supplied RA and DEC coordinates.
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual IPState GuideSouth(uint32_t ms) override
Guide south for ms milliseconds. South is defined as DEC-.
virtual IPState GuideWest(uint32_t ms) override
Guide west for ms milliseconds. West is defined as RA-.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
~LX200_TeenAstro() override=default
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
virtual void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
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 ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
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 Handshake() override
perform handshake with device to check communication
virtual IPState GuideEast(uint32_t ms) override
Guide east for ms milliseconds. East is defined as RA+.
virtual const char * getDefaultName() override
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool ReadScopeStatus() override
Read telescope status.
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool Park() override
Park the telescope to its home position.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual void getBasicData()
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool Abort() override
Abort any telescope motion including tracking if possible.
virtual IPState GuideNorth(uint32_t ms) override
Guide north for ms milliseconds. North is defined as DEC+.
Implementations for common driver routines.
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.