TwiceAsNice  2019-02-18
Macros | Functions | Variables
magellan1.cpp File Reference
#include "magellan1.h"
#include "magellandriver.h"
Include dependency graph for magellan1.cpp:

Macros

#define COMM_GROUP   "Communication"
 
#define BASIC_GROUP   "Position"
 
#define MAGELLAN_TRACK   0
 
#define MAGELLAN_SYNC   1
 
#define currentRA   EquatorialCoordsRN[0].value
 
#define currentDEC   EquatorialCoordsRN[1].value
 

Functions

static void ISPoll (void *)
 
static void retryConnection (void *)
 
void ISInit ()
 Send client definitions of all properties. More...
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
void ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Update data of an existing blob vector property. More...
 
void ISSnoopDevice (XMLEle *root)
 Function defined by Drivers that is called when another Driver it is snooping (by having previously called IDSnoopDevice()) sent any INDI message. More...
 

Variables

Magellan1telescope = nullptr
 
char * me
 
static ISwitch ConnectS [] = { { "CONNECT", "Connect", ISS_OFF, 0, 0 }, { "DISCONNECT", "Disconnect", ISS_ON, 0, 0 } }
 
ISwitchVectorProperty ConnectSP
 
static IText PortT [] = { { "PORT", "Port", 0, 0, 0, 0 } }
 
ITextVectorProperty PortTP
 
INumber EquatorialCoordsRN []
 
INumberVectorProperty EquatorialCoordsRNP
 

Macro Definition Documentation

◆ BASIC_GROUP

#define BASIC_GROUP   "Position"

◆ COMM_GROUP

#define COMM_GROUP   "Communication"

◆ currentDEC

#define currentDEC   EquatorialCoordsRN[1].value

◆ currentRA

#define currentRA   EquatorialCoordsRN[0].value

◆ MAGELLAN_SYNC

#define MAGELLAN_SYNC   1

◆ MAGELLAN_TRACK

#define MAGELLAN_TRACK   0

Function Documentation

◆ ISInit()

void ISInit ( void  )

Send client definitions of all properties.

◆ ISNewNumber()

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

◆ ISPoll()

static void ISPoll ( void *  p)
static

◆ retryConnection()

static void retryConnection ( void *  p)
static

Variable Documentation

◆ ConnectS

ISwitch ConnectS[] = { { "CONNECT", "Connect", ISS_OFF, 0, 0 }, { "DISCONNECT", "Disconnect", ISS_ON, 0, 0 } }
static

◆ ConnectSP

Initial value:
= { mydev, "CONNECTION", "Connection", COMM_GROUP, IP_RW, ISR_1OFMANY,
static ISwitch ConnectS[]
Definition: magellan1.cpp:55
Definition: indiapi.h:155
Definition: indiapi.h:166
#define COMM_GROUP
Definition: magellan1.cpp:33
Definition: indiapi.h:178
const char * mydev
Definition: ieq45.cpp:44
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ EquatorialCoordsRN

INumber EquatorialCoordsRN[]
Initial value:
= { { "RA", "RA H:M:S", "%10.6m", 0., 24., 0., 0., 0, 0, 0 },
{ "DEC", "Dec D:M:S", "%10.6m", -90., 90., 0., 0., 0, 0, 0 } }

◆ EquatorialCoordsRNP

INumberVectorProperty EquatorialCoordsRNP
Initial value:
= {
mydev, "EQUATORIAL_EOD_COORD", "Equatorial JNow", BASIC_GROUP, IP_RO, 120,
}
Definition: indiapi.h:176
Definition: indiapi.h:155
INumber EquatorialCoordsRN[]
Definition: magellan1.cpp:75
const char * mydev
Definition: ieq45.cpp:44
#define BASIC_GROUP
Definition: magellan1.cpp:34
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ me

char* me

◆ PortT

IText PortT[] = { { "PORT", "Port", 0, 0, 0, 0 } }
static

◆ PortTP

Initial value:
= { mydev, "DEVICE_PORT", "Ports", COMM_GROUP, IP_RW, 0,
IPS_IDLE, PortT, NARRAY(PortT), "", 0 }
static IText PortT[]
Definition: magellan1.cpp:63
Definition: indiapi.h:155
#define COMM_GROUP
Definition: magellan1.cpp:33
Definition: indiapi.h:178
const char * mydev
Definition: ieq45.cpp:44
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ telescope

Magellan1* telescope = nullptr