53 virtual bool Connect()
override;
60 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
61 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
62 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
69 virtual bool Abort()
override;
79 virtual bool SetTrackRate(
double raRate,
double deRate)
override;
81 virtual bool Goto(
double,
double)
override;
82 virtual bool Park()
override;
83 virtual bool UnPark()
override;
84 virtual bool Sync(
double ra,
double dec)
override;
89 virtual bool updateLocation(
double latitude,
double longitude,
double elevation)
override;
90 virtual bool updateTime(ln_date *utc,
double utc_offset)
override;
98 double m_currentRA { 0 };
99 double m_currentDEC { 90 };
100 double m_currentAz { 180 };
101 double m_currentAlt { 0 };
102 double m_targetRA { 0 };
103 double m_targetDEC { 0 };
109 void guideAltAzDecomposed(
double dNS,
double dEW, uint32_t ms);
112 void updateCurrentCoordsFromAxes();
115 void setTargetFromAxisPosition(Angle primary, Angle secondary);
117 unsigned int DBG_SCOPE { 0 };
124 bool guidingNS =
false;
125 bool guidingEW =
false;
130 uint32_t applyGuideErrors(
int axis,
double &rate, uint32_t ms);
134 bool m_GuideLastPositive[2] {
false,
false };
138 uint32_t m_GuideRemainingBacklash[2] { 0, 0 };
139 std::mt19937 m_GuideRng { std::random_device{}() };
141 INDI::PropertyNumber GuideRateNP {2};
148 double m_Home[2] = {0, 0};
150 Axis axisPrimary {
"Primary Axis" };
151 Axis axisSecondary {
"Secondary Axis" };
154 int m_MountType {-1};
160 INDI::IHorizontalCoordinates m_TrackingWindowCoords[3] {};
161 bool m_IsPipelinePrimed {
false };
162 double m_LastTrackingRA { 0 };
163 double m_LastTrackingDec { 0 };
165 bool updateMountAndPierSide();
170 INDI::PropertySwitch simPierSideSP {2};
177 INDI::PropertyNumber mountModelNP {6};
188 INDI::PropertyNumber mountAxisNP {2};
195 INDI::PropertyNumber flipHourAngleNP {1};
197 INDI::PropertyNumber guideErrorsNP {8};
206 INDI::PropertyText PACDeviceTP {1};
207 double m_snoopedAzError { 0 };
208 double m_snoopedAltError { 0 };
210 double m_snoopedGain { 1.0 };
212 bool m_PACMoveActive {
false };
215 void applyPACCorrection();
220 void publishTruePointing();
225 INDI::PropertyNumber EqPENP {2};
226 enum { PE_RA = 0, PE_DEC = 1 };
This class encapsulates all the alignment subsystem classes that are useful to driver implementations...
TelescopeMountType
Mount geometry reported in the standard TELESCOPE_MOUNT_TYPE property. The values are the indices of ...
virtual bool ReadScopeStatus() override
Read telescope status.
virtual bool SetTrackMode(uint8_t mode) override
SetTrackMode Set active tracking mode. Do not change track state.
virtual bool Abort() override
Abort any telescope motion including tracking if possible.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual IPState ExecuteHomeAction(TelescopeHomeAction action) override
Execute a homing action.
virtual const char * getDefaultName() override
virtual bool Disconnect() override
Disconnect from device.
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 updateTime(ln_date *utc, double utc_offset) override
Update telescope time, date, and UTC offset.
virtual bool SetCurrentPark() override
SetCurrentPark Set current coordinates/encoders value as the desired parking position.
virtual IPState GuideSouth(uint32_t ms) override
Guide south for ms milliseconds. South is defined as DEC-.
virtual bool Goto(double, double) override
Move the scope to the supplied RA and DEC coordinates.
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 ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool Park() override
Park the telescope to its home position.
virtual bool SetDefaultPark() override
SetDefaultPark Set default coordinates/encoders value as the desired parking position.
virtual bool updateProperties() override
Called when connected state changes, to add/remove properties.
virtual bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual IPState GuideWest(uint32_t ms) override
Guide west for ms milliseconds. West is defined as RA-.
virtual IPState GuideNorth(uint32_t ms) override
Guide north for ms milliseconds. North is defined as DEC+.
virtual bool MoveWE(INDI_DIR_WE dir, TelescopeMotionCommand command) override
Move the telescope in the direction dir.
virtual bool SetTrackEnabled(bool enabled) override
SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available,...
virtual bool updateLocation(double latitude, double longitude, double elevation) override
Update telescope location settings.
virtual bool SetTrackRate(double raRate, double deRate) override
SetTrackRate Set custom tracking rates.
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
virtual bool MoveNS(INDI_DIR_NS dir, TelescopeMotionCommand command) override
Start or Stop the telescope motion in the direction dir.
virtual ~ScopeSim()=default
virtual bool initProperties() override
Called to initialize basic properties required all the time.
virtual bool UnPark() override
Unpark the telescope if already parked.
virtual bool SetMountType(TelescopeMountType type) override
SetMountType Called when the user selects a different mount type in TELESCOPE_MOUNT_TYPE....
virtual IPState GuideEast(uint32_t ms) override
Guide east for ms milliseconds. East is defined as RA+.
*brief user defined string literal for JSON values *sa std::size_t n