Cleaned up drawing functions.

This commit is contained in:
Jason Watkins
2015-04-16 10:54:41 -07:00
parent 6ac20f0998
commit b7ace82649
2 changed files with 61 additions and 107 deletions

View File

@@ -56,26 +56,12 @@ typedef struct
#endif
} XPCSocket;
typedef struct
{
double latitude;
double longitude;
double altitude;
} Waypoint;
typedef enum
{
xpc_WYPT_ADD = 1,
xpc_WYPT_DEL = 2,
xpc_WYPT_CLR = 3
XPC_WYPT_ADD = 1,
XPC_WYPT_DEL = 2,
XPC_WYPT_CLR = 3
} WYPT_OP;
typedef struct
{
WYPT_OP op;
Waypoint points[20];
size_t numPoints;
} xpcWypt;
// Low Level UDP Functions
XPCSocket openUDP(unsigned short port, const char *xpIP, unsigned short xpPort);
@@ -104,16 +90,11 @@ int sendPOSI(XPCSocket sock, float values[], int size, char ac);
int psendCTRL(XPCSocket sock, float values[], int size);
int sendCTRL(XPCSocket sock, float values[], int size, char ac);
// Waypoints
xpcWypt parseWYPT(const char data[]);
short sendWYPT(XPCSocket sendfd, WYPT_OP op, float points[], int numPoints);
// Drawing
int sendTEXT(XPCSocket sock, char* msg, int x, int y);
int sendWYPT(XPCSocket sock, WYPT_OP op, float points[], int count);
// Screen Text
short sendTEXT(XPCSocket sendfd, char* msg, int x, int y);
#ifdef __cplusplus
}
#endif
#endif //ifdef _h
#endif