Instrument Neutral Distributed Interface INDI  1.9.2
indiguiderinterface.h
Go to the documentation of this file.
1 /*
2  Guider Interface
3  Copyright (C) 2011 Jasem Mutlaq (mutlaqja@ikarustech.com)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 */
20 
21 #pragma once
22 
23 #include "indibase.h"
24 
45 #include <stdint.h>
46 
47 namespace INDI
48 {
49 
51 {
52  public:
58  virtual IPState GuideNorth(uint32_t ms) = 0;
59 
65  virtual IPState GuideSouth(uint32_t ms) = 0;
66 
72  virtual IPState GuideEast(uint32_t ms) = 0;
73 
79  virtual IPState GuideWest(uint32_t ms) = 0;
80 
85  virtual void GuideComplete(INDI_EQ_AXIS axis);
86 
87  protected:
90 
97  void initGuiderProperties(const char *deviceName, const char *groupName);
98 
108  void processGuiderProperties(const char *name, double values[], char *names[], int n);
109 
114 };
115 }
indibase.h
IPState
IPState
Property state.
Definition: indiapi.h:158
INDI::GuiderInterface::GuiderInterface
GuiderInterface()
Definition: indiguiderinterface.cpp:28
INumber
One number descriptor.
INDI::GuiderInterface::GuideWENP
INumberVectorProperty GuideWENP
Definition: indiguiderinterface.h:113
INDI::GuiderInterface::initGuiderProperties
void initGuiderProperties(const char *deviceName, const char *groupName)
Initilize guider properties. It is recommended to call this function within initProperties() of your ...
Definition: indiguiderinterface.cpp:36
INDI::GuiderInterface::GuideSouth
virtual IPState GuideSouth(uint32_t ms)=0
Guide south for ms milliseconds. South is defined as DEC-.
INDI::GuiderInterface::GuideNSNP
INumberVectorProperty GuideNSNP
Definition: indiguiderinterface.h:111
_INumberVectorProperty
Number vector property descriptor.
Definition: indiapi.h:317
INDI::GuiderInterface
Definition: indiguiderinterface.h:50
INDI::GuiderInterface::~GuiderInterface
~GuiderInterface()
Definition: indiguiderinterface.cpp:32
INDI::GuiderInterface::GuideEast
virtual IPState GuideEast(uint32_t ms)=0
Guide east for ms milliseconds. East is defined as RA+.
INDI::GuiderInterface::GuideWest
virtual IPState GuideWest(uint32_t ms)=0
Guide west for ms milliseconds. West is defined as RA-.
INDI::GuiderInterface::GuideWEN
INumber GuideWEN[2]
Definition: indiguiderinterface.h:112
INDI::GuiderInterface::GuideNorth
virtual IPState GuideNorth(uint32_t ms)=0
Guide north for ms milliseconds. North is defined as DEC+.
INDI::GuiderInterface::GuideComplete
virtual void GuideComplete(INDI_EQ_AXIS axis)
Call GuideComplete once the guiding pulse is complete.
Definition: indiguiderinterface.cpp:86
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition: AlignmentSubsystemForClients.cpp:11
INDI_EQ_AXIS
INDI_EQ_AXIS
Definition: indibasetypes.h:32
INDI::GuiderInterface::GuideNSN
INumber GuideNSN[2]
Definition: indiguiderinterface.h:110
INDI::GuiderInterface::processGuiderProperties
void processGuiderProperties(const char *name, double values[], char *names[], int n)
Call this function whenever client updates GuideNSNP or GuideWSP properties in the primary device....
Definition: indiguiderinterface.cpp:49