Instrument Neutral Distributed Interface INDI
2.0.2
|
Go to the source code of this file.
Macros | |
#define | mydev "Sky Commander" |
#define | BASIC_GROUP "Main Control" |
#define | POLLMS_OVERRIDE 1000 |
#define | currentRA eq[0].value |
#define | currentDEC eq[1].value |
#define | SKYCOMMANDER_TIMEOUT 5 |
Functions | |
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... | |
int | updateSkyCommanderCoord (int fd, double *ra, double *dec) |
Variables | |
int | fd |
ISwitchVectorProperty | PowerSP |
INumber | eq [] |
INumberVectorProperty | eqNum |
#define BASIC_GROUP "Main Control" |
Definition at line 31 of file skycommander.c.
#define currentDEC eq[1].value |
Definition at line 34 of file skycommander.c.
#define currentRA eq[0].value |
Definition at line 33 of file skycommander.c.
#define mydev "Sky Commander" |
Definition at line 30 of file skycommander.c.
#define POLLMS_OVERRIDE 1000 |
Definition at line 32 of file skycommander.c.
#define SKYCOMMANDER_TIMEOUT 5 |
Definition at line 35 of file skycommander.c.
void ISGetProperties | ( | const char * | dev | ) |
Get Device Properties.
dev | the name of the device. |
This function is called by the framework whenever the driver has received a getProperties message from an INDI client. The argument
dev | is either a string containing the name of the device specified within the message, or NULL if no device was specified. If the driver does not recognize the device, it should ignore the message and do nothing. If dev matches the device the driver is implementing, or dev is NULL, the driver must respond by sending one defXXX message to describe each property defined by this device, including its current (or initial) value. The recommended way to send these messages is to call the appropriate IDDef functions. |
Definition at line 73 of file skycommander.c.
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.
dev | the name of the device. |
name | the name of the blob vector property to update. |
sizes | an array of base64 blob sizes in bytes before decoding. |
blobsizes | an array of the sizes of blobs after decoding from base64. |
blobs | an array of decoded data. Each blob size is found in blobsizes array. |
formats | Blob data format (e.g. fits.z). |
names | names of blob members to update. |
n | the number of blobs to update. |
Definition at line 124 of file skycommander.c.
void ISNewNumber | ( | const char * | dev, |
const char * | name, | ||
double | values[], | ||
char * | names[], | ||
int | n | ||
) |
Definition at line 115 of file skycommander.c.
void ISNewSwitch | ( | const char * | dev, |
const char * | name, | ||
ISState * | states, | ||
char * | names[], | ||
int | n | ||
) |
Update the value of an existing switch vector property.
dev | the name of the device. |
name | the name of the switch vector property to update. |
states | an array of switch states. |
names | parallel names to the array of switch states. |
n | the dimension of states[]. |
Definition at line 84 of file skycommander.c.
void ISNewText | ( | const char * | dev, |
const char * | name, | ||
char * | texts[], | ||
char * | names[], | ||
int | n | ||
) |
Update the value of an existing text vector property.
dev | the name of the device. |
name | the name of the text vector property to update. |
texts | an array of text values. |
names | parallel names to the array of text values. |
n | the dimension of texts[]. |
Definition at line 99 of file skycommander.c.
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.
root | The argument contains the full message exactly as it was sent by the driver. Hint: use the IUSnoopXXX utility functions to help crack the message if it was one of setXXX or defXXX. |
Definition at line 136 of file skycommander.c.
int updateSkyCommanderCoord | ( | int | fd, |
double * | ra, | ||
double * | dec | ||
) |
Definition at line 141 of file skycommander.c.
INumber eq[] |
Definition at line 52 of file skycommander.c.
INumberVectorProperty eqNum |
Definition at line 56 of file skycommander.c.
int fd |
Definition at line 41 of file skycommander.c.
ISwitchVectorProperty PowerSP |
Definition at line 44 of file skycommander.c.