36 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
37 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
49 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
50 virtual bool updateTime(ln_date * utc,
double utc_offset)
override;
53 virtual bool Park()
override;
54 virtual bool UnPark()
override;
59 virtual bool Sync(
double ra,
double dec)
override;
60 virtual bool Goto(
double,
double)
override;
61 virtual bool GotoAzAlt(
double az,
double alt);
62 virtual bool Abort()
override;
88 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
103 bool SetAltAzMode(
bool);
107 bool isSlewComplete();
110 void guideTimeoutCallbackNS();
111 void guideTimeoutCallbackWE();
124 double CurrentRA { 0 }, CurrentDE { 0 };
125 double TargetRA {0}, TargetDE {0};
126 uint8_t m_MountModel { 0 };
127 int m_TargetSlewRate { 5 };
128 uint8_t m_TrackingFlag { 0 };
129 double m_FirmwareVersion { 0 };
130 double m_CustomGuideRA { 0 }, m_CustomGuideDE { 0 };
131 int m_GuideNSTID { 0 }, m_GuideWETID { 0 };
134 int hexStrToInteger(
const std::string &str);
135 void hexDump(
char *buf,
const char *data,
int size);
138 bool m_isAltAz {
false };
140 bool goto_AltAz {
false };
147 IText StatusT[5] = {};
175 std::vector<std::string> m_MountInfo;
182 static constexpr uint16_t SIM_SLEW_RATE[] = {1, 8, 16, 32, 64, 128, 400, 600, 800, 900};
184 static const uint8_t SYN_RES = 64;
186 static const uint8_t SYN_TIMEOUT = 3;
188 static const char SYN_DEL = {
'#'};
190 static constexpr
const char * MOUNT_TAB =
"Mount Information";
virtual bool Park() override
Park the telescope to its home position.
static void guideTimeoutHelperWE(void *context)
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
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 SetSlewRate(int index) override
SetSlewRate Set desired slew rate index.
static void guideTimeoutHelperNS(void *context)
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual const char * getDefaultName() override
virtual IPState GuideEast(uint32_t ms) override
Guide east for ms milliseconds. East is defined as RA+.
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool ReadScopeStatus() override
Read telescope status.
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 Abort() override
Abort any telescope motion including tracking if possible.
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
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-.
virtual bool GotoAzAlt(double az, double alt)
virtual IPState GuideNorth(uint32_t ms) override
Guide north for ms milliseconds. North is defined as DEC+.
virtual IPState GuideSouth(uint32_t ms) override
Guide south for ms milliseconds. South is defined as DEC-.
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
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.
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.