32static std::unique_ptr<GPUSB> gpGuide(
new GPUSB());
58 LOG_ERROR(
"Error: cannot find GPUSB device.");
157 NSGuideTS = std::chrono::system_clock::now();
176 NSGuideTS = std::chrono::system_clock::now();
195 WEGuideTS = std::chrono::system_clock::now();
214 WEGuideTS = std::chrono::system_clock::now();
223 static_cast<GPUSB*
>(context)->NSTimerCallback();
228 static_cast<GPUSB*
>(context)->WETimerCallback();
231void GPUSB::NSTimerCallback()
237void GPUSB::WETimerCallback()
void setDebug(bool enable)
bool stopPulse(int direction)
bool startPulse(int direction)
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual IPState GuideEast(uint32_t ms) override
Guide east for ms milliseconds. East is defined as RA+.
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+.
const char * getDefaultName() override
bool Disconnect() override
Disconnect from device.
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
static void NSTimerHelper(void *context)
virtual IPState GuideSouth(uint32_t ms) override
Guide south for ms milliseconds. South is defined as DEC-.
static void WETimerHelper(void *context)
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
void debugTriggered(bool enable) override
Inform driver that the debug option was triggered. This function is called after setDebug is triggere...
virtual bool updateProperties()
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
void setDefaultPollingPeriod(uint32_t msec)
setDefaultPollingPeriod Change the default polling period to call TimerHit() function in the driver.
void setDriverInterface(uint32_t value)
setInterface Set driver interface. By default the driver interface is set to GENERAL_DEVICE....
virtual bool initProperties()
Initialize properties initial state and value. The child class must implement this function.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process the client newNumber command.
void RemoveTimer(int id)
Remove timer added with SetTimer.
void addDebugControl()
Add Debug control to the driver.
virtual void GuideComplete(INDI_EQ_AXIS axis)
Call GuideComplete once the guiding pulse is complete.
bool updateProperties()
updateProperties Define or Delete Rotator properties based on the connection status of the base devic...
void initProperties(const char *groupName)
Initialize guider properties. It is recommended to call this function within initProperties() of your...
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
Call this function whenever client updates GuideNSNP or GuideWSP properties in the primary device....
const char * MAIN_CONTROL_TAB
MAIN_CONTROL_TAB Where all the primary controls for the device are located.
int IEAddTimer(int millisecs, IE_TCF *fp, void *p)
Register a new single-shot timer function, fp, to be called with ud as argument after ms.
#define LOG_ERROR(txt)
Shorter logging macros. In order to use these macros, the function (or method) "getDeviceName()" must...