1 #if !defined(_X2Rotator_H_)
4 #include "../../licensedinterfaces/rotatordriverinterface.h"
5 #include "../../licensedinterfaces/serialportparams2interface.h"
6 #include "../../licensedinterfaces/modalsettingsdialoginterface.h"
8 #define PLUGIN_DISPLAY_NAME "X2 Rotator"
33 const int& nInstanceIndex,
79 virtual bool isEstablishLinkAbortable(
void)
const {
return false;}
85 virtual int position(
double& dPosition) ;
86 virtual int abort(
void) ;
101 virtual unsigned int baudRate()
const {
return 9600;};
137 int m_nInstanceIndex;
140 double m_dTargetPosition;
141 int m_nGotoStartStamp;
143 void portNameOnToCharPtr(
char* pszPort,
const int& nMaxSize)
const;
147 int tcfsGetSerialConnection();
149 int tcfsSendFMMODE();
150 int tcfsPositionCore(
int* plPos);
The SerialPortParams2Interface is a cross-platform interface to common serial port parameters.
Definition: serialportparams2interface.h:37
virtual void deviceInfoDetailedDescription(BasicStringInterface &str) const
Definition: x2rotator.cpp:315
X2Rotator(const char *pszDriverSelection, const int &nInstanceIndex, SerXInterface *pSerX, TheSkyXFacadeForDriversInterface *pTheSkyX, SleeperInterface *pSleeper, BasicIniUtilInterface *pIniUtil, LoggerInterface *pLogger, MutexInterface *pIOMutex, TickCountInterface *pTickCount)
Definition: x2rotator.cpp:32
The SyncMountInterface for mounts.
Definition: syncmountinterface.h:15
The RotatorDriverInterface allows an X2 implementor to a write X2 rotator driver.
Definition: rotatordriverinterface.h:26
The ModalSettingsDialogInterface allows X2 implementors to display a customized settings user interfa...
Definition: modalsettingsdialoginterface.h:23
virtual bool isBaudRateFixed() const
Definition: x2rotator.h:103
virtual int endRotatorGoto(void)
Definition: x2rotator.cpp:385
virtual void deviceInfoFirmwareVersion(BasicStringInterface &str)
Definition: x2rotator.cpp:319
The TickCountInterface is a cross-platform way to measure relative timing.
Definition: tickcountinterface.h:17
virtual void setParity(const SerXInterface::Parity &parity)
Definition: x2rotator.h:106
The MutexInterface provides a cross-platform mutex.
Definition: mutexinterface.h:16
virtual int abort(void)
Definition: x2rotator.cpp:342
virtual void deviceInfoModel(BasicStringInterface &str)
Definition: x2rotator.cpp:323
virtual SerXInterface::Parity parity() const
Definition: x2rotator.h:105
virtual bool isParityFixed() const
Definition: x2rotator.h:107
virtual int establishLink(void)
Definition: x2rotator.cpp:292
The TheSkyXFacadeForDriversInterface is a simplified interface to TheSkyX passed to X2 implementors.
Definition: theskyxfacadefordriversinterface.h:19
virtual void deviceInfoNameShort(BasicStringInterface &str) const
Definition: x2rotator.cpp:307
The X2Rotator example.
Definition: x2rotator.h:27
virtual int isCompleteRotatorGoto(bool &bComplete) const
Definition: x2rotator.cpp:366
DeviceType
Definition: driverrootinterface.h:26
virtual double driverInfoVersion(void) const
Definition: x2rotator.cpp:332
virtual void deviceInfoNameLong(BasicStringInterface &str) const
Definition: x2rotator.cpp:311
virtual int queryAbstraction(const char *pszName, void **ppVal)
Definition: x2rotator.cpp:82
virtual void driverInfoDetailedInfo(BasicStringInterface &str) const
Definition: x2rotator.cpp:328
@ DT_ROTATOR
Definition: driverrootinterface.h:33
virtual int position(double &dPosition)
Definition: x2rotator.cpp:337
virtual unsigned int baudRate() const
Definition: x2rotator.h:101
virtual int terminateLink(void)
Definition: x2rotator.cpp:297
virtual int startRotatorGoto(const double &dTargetPosition)
Definition: x2rotator.cpp:352
The BasicIniUtilInterface is used to make properties persistent.
Definition: basiciniutilinterface.h:21
virtual void setPortName(const char *szPort)
Definition: x2rotator.cpp:417
The LoggerInterface is a cross-platform logging utility passed to X2 implementors to show real-time,...
Definition: loggerinterface.h:58
virtual int initModalSettingsDialog(void)
Definition: x2rotator.h:115
The SleeperInterface is a cross-platform "sleeper".
Definition: sleeperinterface.h:15
Parity
Definition: serxinterface.h:25
virtual DeviceType deviceType(void)
Definition: x2rotator.h:52
The SerXInterface is a cross-plaform serial port.
Definition: serxinterface.h:18
@ B_NOPARITY
Definition: serxinterface.h:26
virtual bool isLinked(void) const
Definition: x2rotator.cpp:302
virtual void portName(BasicStringInterface &str) const
Definition: x2rotator.cpp:407
The BasicStringInterface allows a string as an output.
Definition: basicstringinterface.h:17
virtual int execModalSettingsDialog(void)
Definition: x2rotator.cpp:424
virtual void setBaudRate(unsigned int)
Definition: x2rotator.h:102
X2 Examples
(C) Software Bisque, Inc. All rights reserved.