Instrument Neutral Distributed Interface INDI  1.5.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
INDI::Telescope Class Referenceabstract

Class to provide general functionality of a telescope device. More...

#include <inditelescope.h>

Inheritance diagram for INDI::Telescope:
INDI::DefaultDevice INDI::BaseDevice CelestronGPS DSC IEQPro LX200Basic LX200Generic Paramount ScopeScript ScopeSim ScopeSim SimpleScope SkyCommander SkywatcherAPIMount SynscanMount TemmaMount

Public Types

- Public Types inherited from INDI::BaseDevice

Public Member Functions

 Telescope ()
 
virtual ~Telescope ()
 
virtual bool ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 Process the client newNumber command. More...
 
virtual bool ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Process the client newSwitch command. More...
 
virtual bool ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Process the client newSwitch command. More...
 
virtual void ISGetProperties (const char *dev)
 define the driver's properties to the client. Usually, only a minimum set of properties are defined to the client in this function if the device is in disconnected state. Those properties should be enough to enable the client to establish a connection to the device. In addition to CONNECT/DISCONNECT, such properties may include port name, IP address, etc. You should check if the device is already connected, and if this is true, then you must define the remainder of the the properties to the client in this function. Otherwise, the remainder of the driver's properties are defined to the client in updateProperties() function which is called when a client connects/disconnects from a device. More...
 
virtual bool ISSnoopDevice (XMLEle *root)
 Process a snoop event from INDI server. This function is called when a snooped property is updated in a snooped driver. More...
 
uint32_t GetTelescopeCapability () const
 GetTelescopeCapability returns the capability of the Telescope. More...
 
void SetTelescopeCapability (uint32_t cap, uint8_t slewRateCount=0)
 SetTelescopeCapability sets the Telescope capabilities. All capabilities must be initialized. More...
 
bool CanGOTO ()
 
bool CanSync ()
 
bool CanAbort ()
 
bool CanPark ()
 
bool CanControlTrack ()
 
bool HasTime ()
 
bool HasLocation ()
 
bool HasPierSide ()
 
bool HasPECState ()
 
bool HasTrackMode ()
 
bool HasTrackRate ()
 
virtual bool initProperties ()
 Called to initialize basic properties required all the time. More...
 
virtual bool updateProperties ()
 Called when connected state changes, to add/remove properties. More...
 
virtual bool Handshake ()
 perform handshake with device to check communication More...
 
virtual void TimerHit ()
 Called when setTimer() time is up. More...
 
void SetParkDataType (TelescopeParkData type)
 setParkDataType Sets the type of parking data stored in the park data file and presented to the user. More...
 
bool InitPark ()
 InitPark Loads parking data (stored in ~/.indi/ParkData.xml) that contains parking status and parking position. More...
 
bool isParked ()
 isParked is mount currently parked? More...
 
void SetParked (bool isparked)
 SetParked Change the mount parking status. The data park file (stored in ~/.indi/ParkData.xml) is updated in the process. More...
 
double GetAxis1Park ()
 
double GetAxis1ParkDefault ()
 
double GetAxis2Park ()
 
double GetAxis2ParkDefault ()
 
void SetAxis1Park (double value)
 SetRAPark Set current RA/AZ parking position. The data park file (stored in ~/.indi/ParkData.xml) is updated in the process. More...
 
void SetAxis1ParkDefault (double steps)
 SetRAPark Set default RA/AZ parking position. More...
 
void SetAxis2Park (double steps)
 SetDEPark Set current DEC/ALT parking position. The data park file (stored in ~/.indi/ParkData.xml) is updated in the process. More...
 
void SetAxis2ParkDefault (double steps)
 SetDEParkDefault Set default DEC/ALT parking position. More...
 
bool isLocked ()
 isLocked is mount currently locked? More...
 
void setTelescopeConnection (const uint8_t &value)
 setTelescopeConnection Set telescope connection mode. Child class should call this in the constructor before INDI::Telescope registers any connection interfaces More...
 
uint8_t getTelescopeConnection () const
 
void setPierSide (TelescopePierSide side)
 
TelescopePierSide getPierSide ()
 
void setPECState (TelescopePECState state)
 
TelescopePECState getPECState ()
 
- Public Member Functions inherited from INDI::DefaultDevice
 DefaultDevice ()
 
virtual ~DefaultDevice ()
 
void addAuxControls ()
 Add Debug, Simulation, and Configuration options to the driver. More...
 
void addDebugControl ()
 Add Debug control to the driver. More...
 
void addSimulationControl ()
 Add Simulation control to the driver. More...
 
void addConfigurationControl ()
 Add Configuration control to the driver. More...
 
void resetProperties ()
 Set all properties to IDLE state. More...
 
void defineNumber (INumberVectorProperty *nvp)
 Define number vector to client & register it. Alternatively, IDDefNumber can be used but the property will not get registered and the driver will not be able to save configuration files. More...
 
void defineText (ITextVectorProperty *tvp)
 Define text vector to client & register it. Alternatively, IDDefText can be used but the property will not get registered and the driver will not be able to save configuration files. More...
 
void defineSwitch (ISwitchVectorProperty *svp)
 Define switch vector to client & register it. Alternatively, IDDefswitch can be used but the property will not get registered and the driver will not be able to save configuration files. More...
 
void defineLight (ILightVectorProperty *lvp)
 Define light vector to client & register it. Alternatively, IDDeflight can be used but the property will not get registered and the driver will not be able to save configuration files. More...
 
void defineBLOB (IBLOBVectorProperty *bvp)
 Define BLOB vector to client & register it. Alternatively, IDDefBLOB can be used but the property will not get registered and the driver will not be able to save configuration files. More...
 
virtual bool deleteProperty (const char *propertyName)
 Delete a property and unregister it. It will also be deleted from all clients. More...
 
virtual void setConnected (bool status, IPState state=IPS_OK, const char *msg=nullptr)
 Set connection switch status in the client. More...
 
int SetTimer (int ms)
 Set a timer to call the function TimerHit after ms milliseconds. More...
 
void RemoveTimer (int id)
 Remove timer added with SetTimer. More...
 
virtual const char * getDriverExec ()
 
virtual const char * getDriverName ()
 
void setVersion (uint16_t vMajor, uint16_t vMinor)
 Set driver version information to be defined in DRIVER_INFO property as vMajor.vMinor. More...
 
uint16_t getMajorVersion ()
 
uint16_t getMinorVersion ()
 
virtual bool ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Process the client newBLOB command. More...
 
virtual uint16_t getDriverInterface ()
 
void setDriverInterface (uint16_t value)
 setInterface Set driver interface. By default the driver interface is set to GENERAL_DEVICE. You may send an ORed list of DeviceInterface values. More...
 
- Public Member Functions inherited from INDI::BaseDevice
 BaseDevice ()
 
virtual ~BaseDevice ()
 
INumberVectorPropertygetNumber (const char *name)
 
ITextVectorPropertygetText (const char *name)
 
ISwitchVectorPropertygetSwitch (const char *name)
 
ILightVectorPropertygetLight (const char *name)
 
IBLOBVectorPropertygetBLOB (const char *name)
 
IPState getPropertyState (const char *name)
 
IPerm getPropertyPermission (const char *name)
 
void registerProperty (void *p, INDI_PROPERTY_TYPE type)
 
int removeProperty (const char *name, char *errmsg)
 Remove a property. More...
 
void * getRawProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN)
 Return a property and its type given its name. More...
 
INDI::PropertygetProperty (const char *name, INDI_PROPERTY_TYPE type=INDI_UNKNOWN)
 Return a property and its type given its name. More...
 
std::vector< INDI::Property * > * getProperties ()
 Return a list of all properties in the device. More...
 
bool buildSkeleton (const char *filename)
 Build driver properties from a skeleton file. More...
 
bool isConnected ()
 
void setDeviceName (const char *dev)
 Set the device name. More...
 
const char * getDeviceName ()
 
void addMessage (const std::string &msg)
 Add message to the driver's message queue. More...
 
void checkMessage (XMLEle *root)
 
void doMessage (XMLEle *msg)
 
std::string messageQueue (int index) const
 
std::string lastMessage ()
 
void setMediator (INDI::BaseMediator *med)
 Set the driver's mediator to receive notification of news devices and updated property values. More...
 
INDI::BaseMediatorgetMediator ()
 
const char * getDriverName ()
 
const char * getDriverExec ()
 
const char * getDriverVersion ()
 

Static Public Member Functions

static void joystickHelper (const char *joystick_n, double mag, double angle, void *context)
 
static void buttonHelper (const char *button_n, ISState state, void *context)
 

Public Attributes

enum INDI::Telescope:: { ... }  TelescopeConnection
 
enum INDI::Telescope:: { ... }  TelescopeCapability
 

Protected Member Functions

virtual bool saveConfigItems (FILE *fp)
 saveConfigItems Save specific properties in the provide config file handler. Child class usually override this function to save their own properties and the base class saveConfigItems(fp) must be explicitly called by each child class. The Default Device saveConfigItems(fp) only save Debug properties options in the config file. More...
 
void NewRaDec (double ra, double dec)
 The child class calls this function when it has updates. More...
 
virtual bool ReadScopeStatus ()=0
 Read telescope status. More...
 
virtual bool Goto (double ra, double dec)
 Move the scope to the supplied RA and DEC coordinates. More...
 
virtual bool Sync (double ra, double dec)
 Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates. More...
 
virtual bool MoveNS (INDI_DIR_NS dir, TelescopeMotionCommand command)
 Start or Stop the telescope motion in the direction dir. More...
 
virtual bool MoveWE (INDI_DIR_WE dir, TelescopeMotionCommand command)
 Move the telescope in the direction dir. More...
 
virtual bool Park ()
 Park the telescope to its home position. More...
 
virtual bool UnPark ()
 Unpark the telescope if already parked. More...
 
virtual bool Abort ()
 Abort any telescope motion including tracking if possible. More...
 
virtual bool SetTrackMode (uint8_t mode)
 SetTrackMode Set active tracking mode. Do not change track state. More...
 
virtual bool SetTrackRate (double raRate, double deRate)
 SetTrackRate Set custom tracking rates. More...
 
virtual int AddTrackMode (const char *name, const char *label, bool isDefault=false)
 AddTrackMode. More...
 
virtual bool SetTrackEnabled (bool enabled)
 SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available, it is assumed sidereal. Otherwise, whatever tracking mode should be activated or deactivated accordingly. More...
 
virtual bool updateTime (ln_date *utc, double utc_offset)
 Update telescope time, date, and UTC offset. More...
 
virtual bool updateLocation (double latitude, double longitude, double elevation)
 Update telescope location settings. More...
 
virtual bool SetParkPosition (double Axis1Value, double Axis2Value)
 SetParkPosition Set desired parking position to the supplied value. This ONLY sets the desired park position value and does not perform parking. More...
 
virtual bool SetCurrentPark ()
 SetCurrentPark Set current coordinates/encoders value as the desired parking position. More...
 
virtual bool SetDefaultPark ()
 SetDefaultPark Set default coordinates/encoders value as the desired parking position. More...
 
virtual bool SetSlewRate (int index)
 SetSlewRate Set desired slew rate index. More...
 
bool callHandshake ()
 callHandshake Helper function that sets the port file descriptor before calling the actual Handshake function implenented in drivers More...
 
void processNSWE (double mag, double angle)
 
void processJoystick (const char *joystick_n, double mag, double angle)
 
void processSlewPresets (double mag, double angle)
 
void processButton (const char *button_n, ISState state)
 
bool LoadScopeConfig ()
 Load scope settings from XML files. More...
 
bool UpdateScopeConfig ()
 Save scope settings to XML files. More...
 
std::string GetHomeDirectory () const
 Validate a file name. More...
 
int GetScopeConfigIndex () const
 Get the scope config index. More...
 
bool CheckFile (const std::string &file_name, bool writable) const
 Check if a file exists and it is readable. More...
 
char * LoadParkData ()
 
bool WriteParkData ()
 
- Protected Member Functions inherited from INDI::DefaultDevice
void setDynamicPropertiesBehavior (bool defineEnabled, bool deleteEnabled)
 setDynamicPropertiesBehavior controls handling of dynamic properties. Dyanmic properties are those generated from an external skeleton XML file. By default all properties, including dynamic properties, are defined to the client in ISGetProperties(). Furthermore, when ┼▒deleteProperty(properyName) is called, the dynamic property is deleted by default, and can only be restored by calling buildSkeleton(filename) again. However, it is sometimes desirable to skip the definition of the dynamic properties on startup and delegate this task to the child class. To control this behavior, set enabled to false. More...
 
virtual bool loadConfig (bool silent=false, const char *property=nullptr)
 Load the last saved configuration file. More...
 
virtual bool saveConfig (bool silent=false, const char *property=nullptr)
 Save the current properties in a configuration file. More...
 
virtual bool saveAllConfigItems (FILE *fp)
 saveAllConfigItems Save all the drivers' properties in the configuration file More...
 
virtual bool loadDefaultConfig ()
 Load the default configuration file. More...
 
void setDebug (bool enable)
 Toggle driver debug status A driver can be more verbose if Debug option is enabled by the client. More...
 
void setSimulation (bool enable)
 Toggle driver simulation status A driver can run in simulation mode if Simulation option is enabled by the client. More...
 
virtual void debugTriggered (bool enable)
 Inform driver that the debug option was triggered. This function is called after setDebug is triggered by the client. Reimplement this function if your driver needs to take specific action after debug is enabled/disabled. Otherwise, you can use isDebug() to check if simulation is enabled or disabled. More...
 
virtual void simulationTriggered (bool enable)
 Inform driver that the simulation option was triggered. This function is called after setSimulation is triggered by the client. Reimplement this function if your driver needs to take specific action after simulation is enabled/disabled. Otherwise, you can use isSimulation() to check if simulation is enabled or disabled. More...
 
bool isDebug ()
 
bool isSimulation ()
 
virtual bool Connect ()
 Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interface (Serial or TCP) governed by connectionMode. If connection is successful, it proceed to call Handshake() function to ensure communication with device is successful. For other communication interface, override the method in the child class implementation. More...
 
virtual bool Disconnect ()
 Disconnect from device. More...
 
void registerConnection (Connection::Interface *newConnection)
 registerConnection Add new connection plugin to the existing connection pool. The connection type shall be defined to the client in ISGetProperties() More...
 
bool unRegisterConnection (Connection::Interface *existingConnection)
 unRegisterConnection Remove connection from existing pool More...
 
Connection::InterfacegetActiveConnection ()
 
virtual const char * getDefaultName ()=0
 
- Protected Member Functions inherited from INDI::BaseDevice
int buildProp (XMLEle *root, char *errmsg)
 Build a property given the supplied XML element (defXXX) More...
 
int setValue (XMLEle *root, char *errmsg)
 handle SetXXX commands from client More...
 
int setBLOB (IBLOBVectorProperty *pp, XMLEle *root, char *errmsg)
 Parse and store BLOB in the respective vector. More...
 

Protected Attributes

TelescopeStatus TrackState
 
TelescopeStatus RememberTrackState
 RememberTrackState Remember last state of Track State to fall back to in case of errors or aborts. More...
 
INumberVectorProperty EqNP
 
INumber EqN [2]
 
INumberVectorProperty TargetNP
 
INumber TargetN [2]
 
ISwitchVectorProperty AbortSP
 
ISwitch AbortS [1]
 
ISwitchVectorProperty CoordSP
 
ISwitch CoordS [3]
 
INumberVectorProperty LocationNP
 
INumber LocationN [3]
 
ISwitchVectorProperty ParkSP
 
ISwitch ParkS [2]
 
INumber ParkPositionN [2]
 
INumberVectorProperty ParkPositionNP
 
ISwitch ParkOptionS [3]
 
ISwitchVectorProperty ParkOptionSP
 
ISwitch MovementNSS [2]
 
ISwitchVectorProperty MovementNSSP
 
ISwitch MovementWES [2]
 
ISwitchVectorProperty MovementWESP
 
ISwitchVectorProperty SlewRateSP
 
ISwitchSlewRateS
 
INumber ScopeParametersN [4]
 
INumberVectorProperty ScopeParametersNP
 
IText TimeT [2]
 
ITextVectorProperty TimeTP
 
ITextVectorProperty ActiveDeviceTP
 
IText ActiveDeviceT [2]
 
ISwitchVectorProperty DomeClosedLockTP
 
ISwitch DomeClosedLockT [4]
 
ISwitch LockAxisS [2]
 
ISwitchVectorProperty LockAxisSP
 
ISwitch PierSideS [2]
 
ISwitchVectorProperty PierSideSP
 
TelescopePierSide lastPierSide
 
TelescopePierSide currentPierSide
 
ISwitch PECStateS [2]
 
ISwitchVectorProperty PECStateSP
 
ISwitchVectorProperty TrackModeSP
 
ISwitchTrackModeS { nullptr }
 
ISwitchVectorProperty TrackStateSP
 
ISwitch TrackStateS [2]
 
INumberVectorProperty TrackRateNP
 
INumber TrackRateN [2]
 
TelescopePECState lastPECState
 
TelescopePECState currentPECState
 
uint32_t capability
 
int last_we_motion
 
int last_ns_motion
 
int PortFD = -1
 
Connection::SerialserialConnection = NULL
 
Connection::TCPtcpConnection = NULL
 
- Protected Attributes inherited from INDI::DefaultDevice
uint32_t updatePeriodMS = 1000
 Period in milliseconds to call TimerHit(). Default 1000 ms. More...
 

Detailed Description

Class to provide general functionality of a telescope device.

Developers need to subclass INDI::Telescope to implement any driver for telescopes within INDI.

Implementing a basic telescope driver involves the child class performing the following steps:

TrackState is used to monitor changes in Tracking state. There are three main tracking properties:

Ideally, the child class should avoid changing property states directly within a function call from the base class as such state changes take place in the base class after checking the return values of such functions.

Author
Jasem Mutlaq, Gerry Rozema
See also
TelescopeSimulator and SynScan drivers for examples of implementations of INDI::Telescope.
Examples:
simplescope.h.

Definition at line 67 of file inditelescope.h.

Member Enumeration Documentation

anonymous enum
Enumerator
CONNECTION_NONE 
CONNECTION_SERIAL 

Do not use any connection plugin

CONNECTION_TCP 

For regular serial and bluetooth connections

Definition at line 135 of file inditelescope.h.

anonymous enum
Enumerator
TELESCOPE_CAN_GOTO 
TELESCOPE_CAN_SYNC 

Can the telescope go to to specific coordinates?

TELESCOPE_CAN_PARK 

Can the telescope sync to specific coordinates?

TELESCOPE_CAN_ABORT 

Can the telescope park?

TELESCOPE_HAS_TIME 

Can the telescope abort motion?

TELESCOPE_HAS_LOCATION 

Does the telescope have configurable date and time settings?

TELESCOPE_HAS_PIER_SIDE 

Does the telescope have configuration location settings?

TELESCOPE_HAS_PEC 

Does the telescope have pier side property?

TELESCOPE_HAS_TRACK_MODE 

Does the telescope have PEC playback?

TELESCOPE_CAN_CONTROL_TRACK 

Does the telescope have track modes (sidereal, lunar, solar..etc)?

TELESCOPE_HAS_TRACK_RATE 

Can the telescope engage and disengage tracking?

Definition at line 146 of file inditelescope.h.

Enumerator
LOCATION_LATITUDE 
LOCATION_LONGITUDE 
LOCATION_ELEVATION 

Definition at line 111 of file inditelescope.h.

Enumerator
MOTION_START 
MOTION_STOP 

Definition at line 78 of file inditelescope.h.

Enumerator
PARK_NONE 
PARK_RA_DEC 
PARK_AZ_ALT 
PARK_RA_DEC_ENCODER 
PARK_AZ_ALT_ENCODER 

Definition at line 103 of file inditelescope.h.

Enumerator
PEC_UNKNOWN 
PEC_OFF 
PEC_ON 

Definition at line 124 of file inditelescope.h.

Enumerator
PIER_UNKNOWN 
PIER_WEST 
PIER_EAST 

Definition at line 117 of file inditelescope.h.

Enumerator
SLEW_GUIDE 
SLEW_CENTERING 
SLEW_FIND 
SLEW_MAX 

Definition at line 83 of file inditelescope.h.

Enumerator
SCOPE_IDLE 
SCOPE_SLEWING 
SCOPE_TRACKING 
SCOPE_PARKING 
SCOPE_PARKED 

Definition at line 70 of file inditelescope.h.

Enumerator
TRACK_SIDEREAL 
TRACK_SOLAR 
TRACK_LUNAR 
TRACK_CUSTOM 

Definition at line 90 of file inditelescope.h.

Enumerator
TRACK_ON 
TRACK_OFF 
TRACK_UNKNOWN 

Definition at line 97 of file inditelescope.h.

Constructor & Destructor Documentation

INDI::Telescope::Telescope ( )

Definition at line 47 of file inditelescope.cpp.

INDI::Telescope::~Telescope ( )
virtual

Definition at line 71 of file inditelescope.cpp.

Member Function Documentation

bool INDI::Telescope::Abort ( )
protectedvirtual

Abort any telescope motion including tracking if possible.

Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, CelestronGPS, IEQPro, TemmaMount, Paramount, LX200Pulsar2, ScopeSim, SynscanMount, ScopeScript, LX200Basic, SimpleScope, and SkywatcherAPIMount.

Definition at line 1474 of file inditelescope.cpp.

int INDI::Telescope::AddTrackMode ( const char *  name,
const char *  label,
bool  isDefault = false 
)
protectedvirtual

AddTrackMode.

Parameters
nameName of track mode. It is recommended to use standard properties names such as TRACK_SIDEREAL..etc.
labelLabel of track mode that appears at the client side.
isDefaultSet to true to mark the track mode as the default. Only one mode should be marked as default.
Returns
Index of added track mode
Note
Child class should add all track modes be

Definition at line 1514 of file inditelescope.cpp.

void INDI::Telescope::buttonHelper ( const char *  button_n,
ISState  state,
void *  context 
)
static

Definition at line 2170 of file inditelescope.cpp.

bool INDI::Telescope::callHandshake ( )
protected

callHandshake Helper function that sets the port file descriptor before calling the actual Handshake function implenented in drivers

Returns
Result of actual device Handshake()

Definition at line 1427 of file inditelescope.cpp.

bool INDI::Telescope::CanAbort ( )
inline
Returns
True if telescope can abort motion.

Definition at line 198 of file inditelescope.h.

bool INDI::Telescope::CanControlTrack ( )
inline
Returns
True if telescope can enagle and disengage tracking.

Definition at line 208 of file inditelescope.h.

bool INDI::Telescope::CanGOTO ( )
inline
Returns
True if telescope support goto operations

Definition at line 188 of file inditelescope.h.

bool INDI::Telescope::CanPark ( )
inline
Returns
True if telescope can park.

Definition at line 203 of file inditelescope.h.

bool INDI::Telescope::CanSync ( )
inline
Returns
True if telescope support sync operations

Definition at line 193 of file inditelescope.h.

bool INDI::Telescope::CheckFile ( const std::string &  file_name,
bool  writable 
) const
protected

Check if a file exists and it is readable.

Parameters
file_nameFile name
writableAdditional check if the file is writable
Returns
True if the checks are successful otherwise false.

Definition at line 2517 of file inditelescope.cpp.

double INDI::Telescope::GetAxis1Park ( )
Returns
Get current RA/AZ parking position.

Definition at line 1906 of file inditelescope.cpp.

double INDI::Telescope::GetAxis1ParkDefault ( )
Returns
Get default RA/AZ parking position.

Definition at line 1910 of file inditelescope.cpp.

double INDI::Telescope::GetAxis2Park ( )
Returns
Get current DEC/ALT parking position.

Definition at line 1914 of file inditelescope.cpp.

double INDI::Telescope::GetAxis2ParkDefault ( )
Returns
Get defailt DEC/ALT parking position.

Definition at line 1918 of file inditelescope.cpp.

std::string INDI::Telescope::GetHomeDirectory ( ) const
protected

Validate a file name.

Parameters
file_nameFile name
Returns
True if the file name is valid otherwise false.

Definition at line 2475 of file inditelescope.cpp.

TelescopePECState INDI::Telescope::getPECState ( )
inline

Definition at line 359 of file inditelescope.h.

TelescopePierSide INDI::Telescope::getPierSide ( )
inline

Definition at line 356 of file inditelescope.h.

int INDI::Telescope::GetScopeConfigIndex ( ) const
protected

Get the scope config index.

Returns
The scope config index

Definition at line 2488 of file inditelescope.cpp.

uint32_t INDI::Telescope::GetTelescopeCapability ( ) const
inline

GetTelescopeCapability returns the capability of the Telescope.

Definition at line 173 of file inditelescope.h.

uint8_t INDI::Telescope::getTelescopeConnection ( ) const
Returns
Get current telescope connection mode

Definition at line 556 of file inditelescope.cpp.

bool INDI::Telescope::Goto ( double  ra,
double  dec 
)
protectedvirtual

Move the scope to the supplied RA and DEC coordinates.

Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, LX200AstroPhysics, IEQPro, ScopeSim, CelestronGPS, LX200Pulsar2, Paramount, LX200ZEQ25, LX200GotoNova, ScopeScript, TemmaMount, LX200Basic, SynscanMount, SimpleScope, and SkywatcherAPIMount.

Definition at line 1465 of file inditelescope.cpp.

bool INDI::Telescope::Handshake ( )
virtual

perform handshake with device to check communication

Reimplemented in LX200AstroPhysics, LX200Generic, LX200_10MICRON, DSC, CelestronGPS, IEQPro, ScopeScript, TemmaMount, Paramount, SkywatcherAPIMount, LX200Pulsar2, SkyCommander, LX200Basic, and SimpleScope.

Definition at line 1440 of file inditelescope.cpp.

bool INDI::Telescope::HasLocation ( )
inline
Returns
True if telescope location can be updated.

Definition at line 218 of file inditelescope.h.

bool INDI::Telescope::HasPECState ( )
inline
Returns
True if telescope supports PEC playback property

Definition at line 228 of file inditelescope.h.

bool INDI::Telescope::HasPierSide ( )
inline
Returns
True if telescope supports pier side property

Definition at line 223 of file inditelescope.h.

bool INDI::Telescope::HasTime ( )
inline
Returns
True if telescope time can be updated.

Definition at line 213 of file inditelescope.h.

bool INDI::Telescope::HasTrackMode ( )
inline
Returns
True if telescope supports track modes

Definition at line 233 of file inditelescope.h.

bool INDI::Telescope::HasTrackRate ( )
inline
Returns
True if telescope supports custom tracking rates.

Definition at line 238 of file inditelescope.h.

bool INDI::Telescope::InitPark ( )

InitPark Loads parking data (stored in ~/.indi/ParkData.xml) that contains parking status and parking position.

Returns
True if loading is successful and data is read, false otherwise. On success, you must call SetAxis1ParkDefault() and SetAxis2ParkDefault() to set the default parking values. On failure, you must call SetAxis1ParkDefault() and SetAxis2ParkDefault() to set the default parking values in addition to SetAxis1Park() and SetAxis2Park() to set the current parking position.

Definition at line 1736 of file inditelescope.cpp.

bool INDI::Telescope::initProperties ( )
virtual
void INDI::Telescope::ISGetProperties ( const char *  dev)
virtual

define the driver's properties to the client. Usually, only a minimum set of properties are defined to the client in this function if the device is in disconnected state. Those properties should be enough to enable the client to establish a connection to the device. In addition to CONNECT/DISCONNECT, such properties may include port name, IP address, etc. You should check if the device is already connected, and if this is true, then you must define the remainder of the the properties to the client in this function. Otherwise, the remainder of the driver's properties are defined to the client in updateProperties() function which is called when a client connects/disconnects from a device.

Parameters
devname of the device
Note
This function is called by the INDI framework, do not call it directly. See LX200 Generic driver for an example implementation

Reimplemented from INDI::DefaultDevice.

Reimplemented in LX200Generic, CelestronGPS, LX200AstroPhysics, LX200_OnStep, SkywatcherAPIMount, TemmaMount, LX200Gemini, LX200Pulsar2, ScopeSim, LX200_16, LX200Basic, LX200GPS, LX200Classic, ScopeScript, LX200Autostar, and SynscanMount.

Definition at line 250 of file inditelescope.cpp.

bool INDI::Telescope::isLocked ( )

isLocked is mount currently locked?

Returns
true if lock status equals true and DomeClosedLockTP is Dome Locks or Dome Locks and Dome Parks (both).

Definition at line 1947 of file inditelescope.cpp.

bool INDI::Telescope::ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)
virtual

Process the client newNumber command.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::DefaultDevice.

Reimplemented in TemmaMount, LX200Generic, SynscanMount, CelestronGPS, LX200_OnStep, LX200AstroPhysics, SkywatcherAPIMount, Paramount, DSC, ScopeSim, LX200Basic, LX200_16, LX200Classic, LX200ZEQ25, IEQPro, LX200Autostar, and LX200FS2.

Definition at line 729 of file inditelescope.cpp.

bool INDI::Telescope::ISNewSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  n 
)
virtual

Process the client newSwitch command.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::DefaultDevice.

Reimplemented in TemmaMount, LX200Generic, SynscanMount, CelestronGPS, LX200_OnStep, SkywatcherAPIMount, LX200AstroPhysics, Paramount, DSC, ScopeSim, LX200Pulsar2, LX200Gemini, LX200_16, LX200Classic, IEQPro, LX200GPS, LX200Autostar, LX200GotoNova, and LX200ZEQ25.

Definition at line 945 of file inditelescope.cpp.

bool INDI::Telescope::ISNewText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  n 
)
virtual

Process the client newSwitch command.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::DefaultDevice.

Reimplemented in TemmaMount, SynscanMount, LX200Generic, SkywatcherAPIMount, LX200Pulsar2, DSC, and ScopeScript.

Definition at line 683 of file inditelescope.cpp.

bool INDI::Telescope::isParked ( )

isParked is mount currently parked?

Returns
True if parked, false otherwise.

Definition at line 1731 of file inditelescope.cpp.

bool INDI::Telescope::ISSnoopDevice ( XMLEle root)
virtual

Process a snoop event from INDI server. This function is called when a snooped property is updated in a snooped driver.

Note
This function is called by the INDI framework, do not call it directly.
Returns
True if any property was successfully processed, false otherwise.

Reimplemented from INDI::DefaultDevice.

Definition at line 464 of file inditelescope.cpp.

void INDI::Telescope::joystickHelper ( const char *  joystick_n,
double  mag,
double  angle,
void *  context 
)
static

Definition at line 2165 of file inditelescope.cpp.

char * INDI::Telescope::LoadParkData ( )
protected

Definition at line 1756 of file inditelescope.cpp.

bool INDI::Telescope::LoadScopeConfig ( )
protected

Load scope settings from XML files.

Returns
True if all config values were loaded otherwise false.

Definition at line 2206 of file inditelescope.cpp.

bool INDI::Telescope::MoveNS ( INDI_DIR_NS  dir,
TelescopeMotionCommand  command 
)
protectedvirtual

Start or Stop the telescope motion in the direction dir.

Parameters
dirdirection of motion
commandStart or Stop command
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, CelestronGPS, LX200ZEQ25, TemmaMount, IEQPro, SkywatcherAPIMount, Paramount, SynscanMount, LX200Pulsar2, ScopeSim, and ScopeScript.

Definition at line 658 of file inditelescope.cpp.

bool INDI::Telescope::MoveWE ( INDI_DIR_WE  dir,
TelescopeMotionCommand  command 
)
protectedvirtual

Move the telescope in the direction dir.

Parameters
dirdirection of motion
commandStart or Stop command
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, CelestronGPS, LX200ZEQ25, TemmaMount, IEQPro, SkywatcherAPIMount, Paramount, SynscanMount, LX200Pulsar2, ScopeSim, and ScopeScript.

Definition at line 669 of file inditelescope.cpp.

void INDI::Telescope::NewRaDec ( double  ra,
double  dec 
)
protected

The child class calls this function when it has updates.

Examples:
simplescope.cpp.

Definition at line 604 of file inditelescope.cpp.

bool INDI::Telescope::Park ( )
protectedvirtual

Park the telescope to its home position.

Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, CelestronGPS, LX200AstroPhysics, LX200ZEQ25, ScopeSim, LX200Pulsar2, LX200GotoNova, LX200_10MICRON, Paramount, IEQPro, SkywatcherAPIMount, LX200Gemini, ScopeScript, TemmaMount, LX200FS2, and SynscanMount.

Definition at line 1480 of file inditelescope.cpp.

void INDI::Telescope::processButton ( const char *  button_n,
ISState  state 
)
protected

Definition at line 1958 of file inditelescope.cpp.

void INDI::Telescope::processJoystick ( const char *  joystick_n,
double  mag,
double  angle 
)
protected

Definition at line 1999 of file inditelescope.cpp.

void INDI::Telescope::processNSWE ( double  mag,
double  angle 
)
protected

Definition at line 2015 of file inditelescope.cpp.

void INDI::Telescope::processSlewPresets ( double  mag,
double  angle 
)
protected

Definition at line 2133 of file inditelescope.cpp.

virtual bool INDI::Telescope::ReadScopeStatus ( )
protectedpure virtual

Read telescope status.

This function checks the following:

  1. Check if the link to the telescope is alive.
  2. Update telescope status: Idle, Slewing, Parking..etc.
  3. Read coordinates
Returns
True if reading scope status is OK, false if an error is encounterd.
Note
This function is not implemented in INDI::Telescope, it must be implemented in the child class

Implemented in LX200_10MICRON, LX200Generic, SkywatcherAPIMount, LX200AstroPhysics, DSC, LX200Gemini, IEQPro, LX200ZEQ25, ScopeScript, CelestronGPS, LX200GotoNova, TemmaMount, LX200_16, SynscanMount, SimpleScope, Paramount, LX200Pulsar2, SkyCommander, LX200Basic, and ScopeSim.

bool INDI::Telescope::saveConfigItems ( FILE *  fp)
protectedvirtual

saveConfigItems Save specific properties in the provide config file handler. Child class usually override this function to save their own properties and the base class saveConfigItems(fp) must be explicitly called by each child class. The Default Device saveConfigItems(fp) only save Debug properties options in the config file.

Parameters
fpPointer to config file handler
Returns
True if successful, false otherwise.

Reimplemented from INDI::DefaultDevice.

Reimplemented in LX200Generic, CelestronGPS, LX200AstroPhysics, LX200Gemini, LX200GotoNova, SkywatcherAPIMount, IEQPro, DSC, LX200FS2, and ScopeScript.

Definition at line 574 of file inditelescope.cpp.

void INDI::Telescope::SetAxis1Park ( double  value)

SetRAPark Set current RA/AZ parking position. The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.

Parameters
valuecurrent Axis 1 value (RA or AZ either in angles or encoder values as specified by the TelescopeParkData type).

Definition at line 1923 of file inditelescope.cpp.

void INDI::Telescope::SetAxis1ParkDefault ( double  steps)

SetRAPark Set default RA/AZ parking position.

Parameters
valueDefault Axis 1 value (RA or AZ either in angles or encoder values as specified by the TelescopeParkData type).

Definition at line 1930 of file inditelescope.cpp.

void INDI::Telescope::SetAxis2Park ( double  steps)

SetDEPark Set current DEC/ALT parking position. The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.

Parameters
valuecurrent Axis 1 value (DEC or ALT either in angles or encoder values as specified by the TelescopeParkData type).

Definition at line 1935 of file inditelescope.cpp.

void INDI::Telescope::SetAxis2ParkDefault ( double  steps)

SetDEParkDefault Set default DEC/ALT parking position.

Parameters
valueDefault Axis 2 value (DEC or ALT either in angles or encoder values as specified by the TelescopeParkData type).

Definition at line 1942 of file inditelescope.cpp.

bool INDI::Telescope::SetCurrentPark ( )
protectedvirtual

SetCurrentPark Set current coordinates/encoders value as the desired parking position.

Returns
True if current mount coordinates are set as parking position, false on error.
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in CelestronGPS, IEQPro, Paramount, ScopeSim, LX200AstroPhysics, LX200ZEQ25, TemmaMount, SynscanMount, and LX200FS2.

Definition at line 1527 of file inditelescope.cpp.

bool INDI::Telescope::SetDefaultPark ( )
protectedvirtual

SetDefaultPark Set default coordinates/encoders value as the desired parking position.

Returns
True if default park coordinates are set as parking position, false on error.
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in CelestronGPS, IEQPro, Paramount, ScopeSim, LX200AstroPhysics, LX200ZEQ25, TemmaMount, SynscanMount, and LX200FS2.

Definition at line 1533 of file inditelescope.cpp.

void INDI::Telescope::SetParkDataType ( TelescopeParkData  type)

setParkDataType Sets the type of parking data stored in the park data file and presented to the user.

Parameters
typeparking data type. If PARK_NONE then no properties will be presented to the user for custom parking position.

Definition at line 1668 of file inditelescope.cpp.

void INDI::Telescope::SetParked ( bool  isparked)

SetParked Change the mount parking status. The data park file (stored in ~/.indi/ParkData.xml) is updated in the process.

Parameters
isparkedset to true if parked, false otherwise.

Definition at line 1705 of file inditelescope.cpp.

bool INDI::Telescope::SetParkPosition ( double  Axis1Value,
double  Axis2Value 
)
protectedvirtual

SetParkPosition Set desired parking position to the supplied value. This ONLY sets the desired park position value and does not perform parking.

Parameters
Axis1ValueFirst axis value
Axis2ValueSecond axis value
Returns
True if desired parking position is accepted and set. False otherwise.
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in Paramount.

Definition at line 1615 of file inditelescope.cpp.

void INDI::Telescope::setPECState ( TelescopePECState  state)

Definition at line 2190 of file inditelescope.cpp.

void INDI::Telescope::setPierSide ( TelescopePierSide  side)

Definition at line 2175 of file inditelescope.cpp.

bool INDI::Telescope::SetSlewRate ( int  index)
protectedvirtual

SetSlewRate Set desired slew rate index.

Parameters
indexIndex of slew rate where 0 is slowest rate and capability.nSlewRate-1 is maximum rate.
Returns
True is operation successful, false otherwise.
Note
This function as implemented in INDI::Telescope performs no function and always return true. Only reimplement it if you need to issue a command to change the slew rate at the hardware level. Most telescope drivers only utilize slew rate when issuing a motion command.

Reimplemented in IEQPro, LX200AstroPhysics, LX200Generic, TemmaMount, LX200ZEQ25, LX200GotoNova, SynscanMount, and LX200Pulsar2.

Definition at line 1952 of file inditelescope.cpp.

void INDI::Telescope::SetTelescopeCapability ( uint32_t  cap,
uint8_t  slewRateCount = 0 
)

SetTelescopeCapability sets the Telescope capabilities. All capabilities must be initialized.

Parameters
capORed list of telescope capabilities.
slewRateCountNumber of slew rates supported by the telescope. If < 4 (default is 0), no slew rate properties will be defined to the client. If >=4, the driver will construct the default slew rate property TELESCOPE_SLEW_RATE with SLEW_GUIDE, SLEW_CENTERING, SLEW_FIND, and SLEW_MAX members where SLEW_GUIDE is the at the lowest setting and SLEW_MAX is at the highest.
Examples:
simplescope.cpp.

Definition at line 1622 of file inditelescope.cpp.

void INDI::Telescope::setTelescopeConnection ( const uint8_t &  value)

setTelescopeConnection Set telescope connection mode. Child class should call this in the constructor before INDI::Telescope registers any connection interfaces

Parameters
valueORed combination of TelescopeConnection values.

Definition at line 561 of file inditelescope.cpp.

bool INDI::Telescope::SetTrackEnabled ( bool  enabled)
protectedvirtual

SetTrackEnabled Engages or disengages mount tracking. If there are no tracking modes available, it is assumed sidereal. Otherwise, whatever tracking mode should be activated or deactivated accordingly.

Parameters
enabledTrue to engage tracking, false to stop tracking completely.
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in CelestronGPS, IEQPro, LX200AstroPhysics, Paramount, ScopeSim, and LX200_OnStep.

Definition at line 1507 of file inditelescope.cpp.

bool INDI::Telescope::SetTrackMode ( uint8_t  mode)
protectedvirtual

SetTrackMode Set active tracking mode. Do not change track state.

Parameters
modeIndex of track mode.
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in CelestronGPS, IEQPro, LX200AstroPhysics, LX200Generic, Paramount, ScopeSim, LX200Gemini, LX200ZEQ25, and LX200GotoNova.

Definition at line 1492 of file inditelescope.cpp.

bool INDI::Telescope::SetTrackRate ( double  raRate,
double  deRate 
)
protectedvirtual

SetTrackRate Set custom tracking rates.

Parameters
raRateRA tracking rate in arcsecs/s
deRateDEC tracking rate in arcsecs/s
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in IEQPro, LX200AstroPhysics, Paramount, and ScopeSim.

Definition at line 1499 of file inditelescope.cpp.

bool INDI::Telescope::Sync ( double  ra,
double  dec 
)
protectedvirtual

Set the telescope current RA and DEC coordinates to the supplied RA and DEC coordinates.

Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, TemmaMount, LX200AstroPhysics, SynscanMount, ScopeSim, CelestronGPS, LX200Pulsar2, IEQPro, Paramount, SkywatcherAPIMount, DSC, LX200GotoNova, ScopeScript, and LX200Basic.

Definition at line 649 of file inditelescope.cpp.

void INDI::Telescope::TimerHit ( )
virtual

Called when setTimer() time is up.

Reimplemented from INDI::DefaultDevice.

Reimplemented in SkywatcherAPIMount.

Definition at line 1446 of file inditelescope.cpp.

bool INDI::Telescope::UnPark ( )
protectedvirtual

Unpark the telescope if already parked.

Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in CelestronGPS, LX200AstroPhysics, LX200Pulsar2, LX200ZEQ25, ScopeSim, LX200GotoNova, LX200_10MICRON, Paramount, IEQPro, SkywatcherAPIMount, LX200_OnStep, LX200Gemini, ScopeScript, TemmaMount, LX200FS2, SynscanMount, and LX200GPS.

Definition at line 1486 of file inditelescope.cpp.

bool INDI::Telescope::updateLocation ( double  latitude,
double  longitude,
double  elevation 
)
protectedvirtual

Update telescope location settings.

Parameters
latitudeSite latitude in degrees.
longitudeSite latitude in degrees increasing eastward from Greenwich (0 to 360).
elevationSite elevation in meters.
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, CelestronGPS, LX200AstroPhysics, IEQPro, SkywatcherAPIMount, LX200Pulsar2, TemmaMount, DSC, LX200GotoNova, LX200ZEQ25, ScopeSim, Paramount, and SynscanMount.

Definition at line 1607 of file inditelescope.cpp.

bool INDI::Telescope::updateProperties ( )
virtual
bool INDI::Telescope::UpdateScopeConfig ( )
protected

Save scope settings to XML files.

Definition at line 2346 of file inditelescope.cpp.

bool INDI::Telescope::updateTime ( ln_date *  utc,
double  utc_offset 
)
protectedvirtual

Update telescope time, date, and UTC offset.

Parameters
utcUTC time.
utc_offsetUTC offset in hours.
Returns
True if successful, false otherwise
Note
If not implemented by the child class, this function by default returns false with a warning message.

Reimplemented in LX200Generic, CelestronGPS, LX200AstroPhysics, IEQPro, TemmaMount, LX200Pulsar2, LX200GotoNova, LX200ZEQ25, Paramount, SynscanMount, LX200GPS, and LX200SS2000PC.

Definition at line 1600 of file inditelescope.cpp.

bool INDI::Telescope::WriteParkData ( )
protected

Definition at line 1852 of file inditelescope.cpp.

Member Data Documentation

ISwitch INDI::Telescope::AbortS[1]
protected

Definition at line 608 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::AbortSP
protected

Definition at line 607 of file inditelescope.h.

IText INDI::Telescope::ActiveDeviceT[2]
protected

Definition at line 652 of file inditelescope.h.

ITextVectorProperty INDI::Telescope::ActiveDeviceTP
protected

Definition at line 651 of file inditelescope.h.

uint32_t INDI::Telescope::capability
protected

Definition at line 689 of file inditelescope.h.

ISwitch INDI::Telescope::CoordS[3]
protected

Definition at line 612 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::CoordSP
protected

Definition at line 611 of file inditelescope.h.

TelescopePECState INDI::Telescope::currentPECState
protected

Definition at line 686 of file inditelescope.h.

TelescopePierSide INDI::Telescope::currentPierSide
protected

Definition at line 667 of file inditelescope.h.

ISwitch INDI::Telescope::DomeClosedLockT[4]
protected

Definition at line 656 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::DomeClosedLockTP
protected

Definition at line 655 of file inditelescope.h.

INumber INDI::Telescope::EqN[2]
protected

Definition at line 599 of file inditelescope.h.

INumberVectorProperty INDI::Telescope::EqNP
protected

Definition at line 598 of file inditelescope.h.

int INDI::Telescope::last_ns_motion
protected

Definition at line 690 of file inditelescope.h.

int INDI::Telescope::last_we_motion
protected

Definition at line 690 of file inditelescope.h.

TelescopePECState INDI::Telescope::lastPECState
protected

Definition at line 686 of file inditelescope.h.

TelescopePierSide INDI::Telescope::lastPierSide
protected

Definition at line 667 of file inditelescope.h.

INumber INDI::Telescope::LocationN[3]
protected

Definition at line 616 of file inditelescope.h.

INumberVectorProperty INDI::Telescope::LocationNP
protected

Definition at line 615 of file inditelescope.h.

ISwitch INDI::Telescope::LockAxisS[2]
protected

Definition at line 659 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::LockAxisSP
protected

Definition at line 660 of file inditelescope.h.

ISwitch INDI::Telescope::MovementNSS[2]
protected

Definition at line 631 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::MovementNSSP
protected

Definition at line 632 of file inditelescope.h.

ISwitch INDI::Telescope::MovementWES[2]
protected

Definition at line 635 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::MovementWESP
protected

Definition at line 636 of file inditelescope.h.

ISwitch INDI::Telescope::ParkOptionS[3]
protected

Definition at line 627 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::ParkOptionSP
protected

Definition at line 628 of file inditelescope.h.

INumber INDI::Telescope::ParkPositionN[2]
protected

Definition at line 623 of file inditelescope.h.

INumberVectorProperty INDI::Telescope::ParkPositionNP
protected

Definition at line 624 of file inditelescope.h.

ISwitch INDI::Telescope::ParkS[2]
protected

Definition at line 620 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::ParkSP
protected

Definition at line 619 of file inditelescope.h.

ISwitch INDI::Telescope::PECStateS[2]
protected

Definition at line 670 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::PECStateSP
protected

Definition at line 671 of file inditelescope.h.

ISwitch INDI::Telescope::PierSideS[2]
protected

Definition at line 663 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::PierSideSP
protected

Definition at line 664 of file inditelescope.h.

int INDI::Telescope::PortFD = -1
protected

Definition at line 696 of file inditelescope.h.

TelescopeStatus INDI::Telescope::RememberTrackState
protected

RememberTrackState Remember last state of Track State to fall back to in case of errors or aborts.

Definition at line 595 of file inditelescope.h.

INumber INDI::Telescope::ScopeParametersN[4]
protected

Definition at line 643 of file inditelescope.h.

INumberVectorProperty INDI::Telescope::ScopeParametersNP
protected

Definition at line 644 of file inditelescope.h.

Connection::Serial* INDI::Telescope::serialConnection = NULL
protected

Definition at line 697 of file inditelescope.h.

ISwitch* INDI::Telescope::SlewRateS
protected

Definition at line 640 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::SlewRateSP
protected

Definition at line 639 of file inditelescope.h.

INumber INDI::Telescope::TargetN[2]
protected

Definition at line 604 of file inditelescope.h.

INumberVectorProperty INDI::Telescope::TargetNP
protected

Definition at line 603 of file inditelescope.h.

Connection::TCP* INDI::Telescope::tcpConnection = NULL
protected

Definition at line 698 of file inditelescope.h.

enum { ... } INDI::Telescope::TelescopeCapability
enum { ... } INDI::Telescope::TelescopeConnection
IText INDI::Telescope::TimeT[2]
protected

Definition at line 647 of file inditelescope.h.

ITextVectorProperty INDI::Telescope::TimeTP
protected

Definition at line 648 of file inditelescope.h.

ISwitch* INDI::Telescope::TrackModeS { nullptr }
protected

Definition at line 675 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::TrackModeSP
protected

Definition at line 674 of file inditelescope.h.

INumber INDI::Telescope::TrackRateN[2]
protected

Definition at line 683 of file inditelescope.h.

INumberVectorProperty INDI::Telescope::TrackRateNP
protected

Definition at line 682 of file inditelescope.h.

TelescopeStatus INDI::Telescope::TrackState
protected

This is a variable filled in by the ReadStatus telescope low level code, used to report current state are we slewing, tracking, or parked.

Examples:
simplescope.cpp.

Definition at line 590 of file inditelescope.h.

ISwitch INDI::Telescope::TrackStateS[2]
protected

Definition at line 679 of file inditelescope.h.

ISwitchVectorProperty INDI::Telescope::TrackStateSP
protected

Definition at line 678 of file inditelescope.h.


The documentation for this class was generated from the following files: