40 #define MAGELLAN_TIMEOUT 5
41 #define MAGELLAN_ERROR -1
43 #define MAGELLAN_ACK 'P'
45 #define CENTURY_THRESHOLD 91
46 #define CONNECTION_RETRIES 2
49 #define getMAGELLANRA(fd, x) getCommandSexa(fd, x, "#:GR#")
50 #define getMAGELLANDEC(fd, x) getCommandSexa(fd, x, "#:GD#")
int check_magellan_connection(int fd)
int getCommandSexa(int fd, double *value, const char *cmd)
int getCalendarDate(int fd, char *date)