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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user