Instrument Neutral Distributed Interface INDI  2.0.2
Macros | Enumerations | Functions
magellandriver.h File Reference

Go to the source code of this file.

Macros

#define MAGELLAN_TIMEOUT   5 /* FD timeout in seconds */
 
#define MAGELLAN_ERROR   -1 /* Default Error Code */
 
#define MAGELLAN_OK   0 /* Default Success Code */
 
#define MAGELLAN_ACK   'P' /* Default Success Code */
 
#define CENTURY_THRESHOLD   91 /* When to goto 21st Century */
 
#define CONNECTION_RETRIES   2 /* Retry Attempt cut-off */
 
#define getMAGELLANRA(fd, x)   getCommandSexa(fd, x, "#:GR#")
 
#define getMAGELLANDEC(fd, x)   getCommandSexa(fd, x, "#:GD#")
 

Enumerations

enum  TFreq {
  LX200_TRACK_SIDEREAL , LX200_TRACK_SOLAR , LX200_TRACK_LUNAR , LX200_TRACK_MANUAL ,
  MAGELLAN_TRACK_DEFAULT , MAGELLAN_TRACK_LUNAR , MAGELLAN_TRACK_MANUAL , IEQ45_TRACK_SIDERAL ,
  IEQ45_TRACK_LUNAR , IEQ45_TRACK_SOLAR , IEQ45_TRACK_ZERO
}
 
enum  TTimeFormat {
  LX200_24 , LX200_AM , LX200_PM , MAGELLAN_24 ,
  MAGELLAN_AM , MAGELLAN_PM , IEQ45_24 , IEQ45_AM ,
  IEQ45_PM
}
 

Functions

char ACK (int fd)
 
int check_magellan_connection (int fd)
 
int getCommandSexa (int fd, double *value, const char *cmd)
 
int getCalendarDate (int fd, char *date)
 

Macro Definition Documentation

◆ CENTURY_THRESHOLD

#define CENTURY_THRESHOLD   91 /* When to goto 21st Century */

Definition at line 45 of file magellandriver.h.

◆ CONNECTION_RETRIES

#define CONNECTION_RETRIES   2 /* Retry Attempt cut-off */

Definition at line 46 of file magellandriver.h.

◆ getMAGELLANDEC

#define getMAGELLANDEC (   fd,
 
)    getCommandSexa(fd, x, "#:GD#")

Definition at line 50 of file magellandriver.h.

◆ getMAGELLANRA

#define getMAGELLANRA (   fd,
 
)    getCommandSexa(fd, x, "#:GR#")

Definition at line 49 of file magellandriver.h.

◆ MAGELLAN_ACK

#define MAGELLAN_ACK   'P' /* Default Success Code */

Definition at line 43 of file magellandriver.h.

◆ MAGELLAN_ERROR

#define MAGELLAN_ERROR   -1 /* Default Error Code */

Definition at line 41 of file magellandriver.h.

◆ MAGELLAN_OK

#define MAGELLAN_OK   0 /* Default Success Code */

Definition at line 42 of file magellandriver.h.

◆ MAGELLAN_TIMEOUT

#define MAGELLAN_TIMEOUT   5 /* FD timeout in seconds */

Definition at line 40 of file magellandriver.h.

Enumeration Type Documentation

◆ TFreq

enum TFreq
Enumerator
LX200_TRACK_SIDEREAL 
LX200_TRACK_SOLAR 
LX200_TRACK_LUNAR 
LX200_TRACK_MANUAL 
MAGELLAN_TRACK_DEFAULT 
MAGELLAN_TRACK_LUNAR 
MAGELLAN_TRACK_MANUAL 
IEQ45_TRACK_SIDERAL 
IEQ45_TRACK_LUNAR 
IEQ45_TRACK_SOLAR 
IEQ45_TRACK_ZERO 

Definition at line 25 of file magellandriver.h.

◆ TTimeFormat

Enumerator
LX200_24 
LX200_AM 
LX200_PM 
MAGELLAN_24 
MAGELLAN_AM 
MAGELLAN_PM 
IEQ45_24 
IEQ45_AM 
IEQ45_PM 

Definition at line 33 of file magellandriver.h.

Function Documentation

◆ ACK()

char ACK ( int  fd)

Definition at line 108 of file lx200driver.cpp.

◆ check_magellan_connection()

int check_magellan_connection ( int  fd)

Definition at line 59 of file magellandriver.c.

◆ getCalendarDate()

int getCalendarDate ( int  fd,
char *  date 
)

Definition at line 315 of file lx200driver.cpp.

◆ getCommandSexa()

int getCommandSexa ( int  fd,
double *  value,
const char *  cmd 
)

Definition at line 143 of file lx200driver.cpp.