#define PORT5 2005
tcp_Socket Motorsock;
tcp_Socket Headsock;
tcp_Socket GPSsock;
tcp_Socket DHeadLocsock;
tcp_Socket StopNavsock;
tcp_Socket Statussock;
#define BINBUFSIZE 63
#define BOUTBUFSIZE 63
#define CINBUFSIZE 1023
#define COUTBUFSIZE 1023
#define TIMEOUT 40UL // will time out 20 milliseconds after receiving any
// character unless MAXSIZE characters are received
#define MAXSIZE 128
#define MAXSIZE2 160
char HeadIn[MAXSIZE];
char GPSIn[MAXSIZE];
char HeadOut[MAXSIZE2];
char GPSOut[MAXSIZE2];
int x;
char HeadBuffer[2048];
char GPSBuffer[2048];
char DHeadLocBuffer[127];
char StopNavBuffer[31];
char DHeadLoc[127];
char StopNav[127];
//VARIABLE DEFINITIONS FOR NAVIGATION
float AVGCSE; /* Average heading to minimize hunting */
float CTS; /* Course to steer computed from waypoint and current location */
float ABSDIFF; /* Absolute difference between CTS and AVGCSE */
float DIST; /* Distance btween current location and WP */
float SPD; /* SPEED */
Comentarios a estos manuales