Cleaned up POSI functions.

- Removed readPOSI and parsePOSI functions. These were only used by the plugin, which no longer uses them.
 - Tweaked types, argument order, and names to improve concision and consistency with other functions.
 - Improved validation and error reporting.
This commit is contained in:
Jason Watkins
2015-04-16 09:34:25 -07:00
parent 80a1a2dcd2
commit 0e6195c063
2 changed files with 42 additions and 60 deletions

View File

@@ -108,10 +108,9 @@ int getDREF(XPCSocket sock, const char* dref, float values[], int* size);
int getDREFs(XPCSocket sock, const char* drefs[], float* values[], unsigned char count, int sizes[]);
// Position
short parsePOSI(const char my_message[], float resultArray[], int arraySize, float *gear);
short readPOSI(XPCSocket recfd, float resultArray[], int arraySize, float *gear);
short sendPOSI(XPCSocket recfd, short ACNum, short numArgs, float valueArray[]);
int psendPOSI(XPCSocket sock, float values[], int size);
int sendPOSI(XPCSocket sock, float values[], int size, char ac);
// Controls
xpcCtrl parseCTRL(const char data[]);
xpcCtrl readCTRL(XPCSocket recfd);