Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Magellan1 Class Reference

#include <magellan1.h>

Public Member Functions

 Magellan1 ()
 
virtual ~Magellan1 ()
 
virtual void ISGetProperties (const char *dev)
 
virtual void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
virtual void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 
virtual void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 
virtual void ISSnoopDevice (XMLEle *root)
 
virtual void ISPoll ()
 
virtual void getBasicData ()
 
void handleError (ISwitchVectorProperty *svp, int err, const char *msg)
 
void handleError (INumberVectorProperty *nvp, int err, const char *msg)
 
void handleError (ITextVectorProperty *tvp, int err, const char *msg)
 
bool isTelescopeOn ()
 
void connectTelescope ()
 
void setCurrentDeviceName (const char *devName)
 
void correctFault ()
 

Public Attributes

int fd
 

Protected Attributes

int timeFormat
 
int currentSiteNum
 
int trackingMode
 
double JD
 
double lastRA
 
double lastDEC
 
bool fault
 
bool simulation
 
char thisDevice [64]
 
int currentSet
 
int lastSet
 
double targetRA
 
double targetDEC
 

Detailed Description

Definition at line 33 of file magellan1.h.

Constructor & Destructor Documentation

◆ Magellan1()

Magellan1::Magellan1 ( )

Definition at line 108 of file magellan1.cpp.

◆ ~Magellan1()

Magellan1::~Magellan1 ( )
virtual

Definition at line 123 of file magellan1.cpp.

Member Function Documentation

◆ connectTelescope()

void Magellan1::connectTelescope ( )

Definition at line 393 of file magellan1.cpp.

◆ correctFault()

void Magellan1::correctFault ( )

Definition at line 306 of file magellan1.cpp.

◆ getBasicData()

void Magellan1::getBasicData ( void  )
virtual

Definition at line 360 of file magellan1.cpp.

◆ handleError() [1/3]

void Magellan1::handleError ( INumberVectorProperty nvp,
int  err,
const char *  msg 
)

Definition at line 241 of file magellan1.cpp.

◆ handleError() [2/3]

void Magellan1::handleError ( ISwitchVectorProperty svp,
int  err,
const char *  msg 
)

Definition at line 210 of file magellan1.cpp.

◆ handleError() [3/3]

void Magellan1::handleError ( ITextVectorProperty tvp,
int  err,
const char *  msg 
)

Definition at line 272 of file magellan1.cpp.

◆ ISGetProperties()

void Magellan1::ISGetProperties ( const char *  dev)
virtual

Definition at line 132 of file magellan1.cpp.

◆ ISNewNumber()

void Magellan1::ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)
virtual

Definition at line 176 of file magellan1.cpp.

◆ ISNewSwitch()

void Magellan1::ISNewSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  n 
)
virtual

Definition at line 185 of file magellan1.cpp.

◆ ISNewText()

void Magellan1::ISNewText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  n 
)
virtual

Definition at line 154 of file magellan1.cpp.

◆ ISPoll()

void Magellan1::ISPoll ( )
virtual

Definition at line 335 of file magellan1.cpp.

◆ ISSnoopDevice()

void Magellan1::ISSnoopDevice ( XMLEle root)
virtual

Definition at line 149 of file magellan1.cpp.

◆ isTelescopeOn()

bool Magellan1::isTelescopeOn ( )

Definition at line 312 of file magellan1.cpp.

◆ setCurrentDeviceName()

void Magellan1::setCurrentDeviceName ( const char *  devName)

Definition at line 127 of file magellan1.cpp.

Member Data Documentation

◆ currentSet

int Magellan1::currentSet
protected

Definition at line 68 of file magellan1.h.

◆ currentSiteNum

int Magellan1::currentSiteNum
protected

Definition at line 59 of file magellan1.h.

◆ fault

bool Magellan1::fault
protected

Definition at line 65 of file magellan1.h.

◆ fd

int Magellan1::fd

Definition at line 55 of file magellan1.h.

◆ JD

double Magellan1::JD
protected

Definition at line 62 of file magellan1.h.

◆ lastDEC

double Magellan1::lastDEC
protected

Definition at line 64 of file magellan1.h.

◆ lastRA

double Magellan1::lastRA
protected

Definition at line 63 of file magellan1.h.

◆ lastSet

int Magellan1::lastSet
protected

Definition at line 69 of file magellan1.h.

◆ simulation

bool Magellan1::simulation
protected

Definition at line 66 of file magellan1.h.

◆ targetDEC

double Magellan1::targetDEC
protected

Definition at line 70 of file magellan1.h.

◆ targetRA

double Magellan1::targetRA
protected

Definition at line 70 of file magellan1.h.

◆ thisDevice

char Magellan1::thisDevice[64]
protected

Definition at line 67 of file magellan1.h.

◆ timeFormat

int Magellan1::timeFormat
protected

Definition at line 58 of file magellan1.h.

◆ trackingMode

int Magellan1::trackingMode
protected

Definition at line 60 of file magellan1.h.


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