Removed 'p' variants of the sendCTRL and sendPOSI functions from the C client.
This commit is contained in:
@@ -514,11 +514,6 @@ int getDREFs(XPCSocket sock, const char* drefs[], float* values[], unsigned char
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/**** POSI functions ****/
|
/**** POSI functions ****/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int psendPOSI(XPCSocket sock, float values[], int size)
|
|
||||||
{
|
|
||||||
return sendPOSI(sock, values, size, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int sendPOSI(XPCSocket sock, float values[], int size, char ac)
|
int sendPOSI(XPCSocket sock, float values[], int size, char ac)
|
||||||
{
|
{
|
||||||
// Validate input
|
// Validate input
|
||||||
@@ -563,11 +558,6 @@ int sendPOSI(XPCSocket sock, float values[], int size, char ac)
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/**** CTRL functions ****/
|
/**** CTRL functions ****/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int psendCTRL(XPCSocket sock, float values[], int size)
|
|
||||||
{
|
|
||||||
return sendCTRL(sock, values, size, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int sendCTRL(XPCSocket sock, float values[], int size, char ac)
|
int sendCTRL(XPCSocket sock, float values[], int size, char ac)
|
||||||
{
|
{
|
||||||
// Validate input
|
// Validate input
|
||||||
|
|||||||
@@ -166,16 +166,6 @@ int getDREFs(XPCSocket sock, const char* drefs[], float* values[], unsigned char
|
|||||||
|
|
||||||
// Position
|
// Position
|
||||||
|
|
||||||
/// Sets the position and orientation of the player aircraft.
|
|
||||||
///
|
|
||||||
/// \param sock The socket to use to send the command.
|
|
||||||
/// \param values An array representing position data about the aircraft. The format of values is
|
|
||||||
/// [Lat, Lon, Alt, Pitch, Roll, Yaw, Gear]. If less than 7 values are specified,
|
|
||||||
/// the unspecified values will be left unchanged.
|
|
||||||
/// \param size The number of elements in values.
|
|
||||||
/// \returns 0 if successful, otherwise a negative value.
|
|
||||||
int psendPOSI(XPCSocket sock, float values[], int size);
|
|
||||||
|
|
||||||
/// Sets the position and orientation of the specified aircraft.
|
/// Sets the position and orientation of the specified aircraft.
|
||||||
///
|
///
|
||||||
/// \param sock The socket to use to send the command.
|
/// \param sock The socket to use to send the command.
|
||||||
@@ -189,16 +179,6 @@ int sendPOSI(XPCSocket sock, float values[], int size, char ac);
|
|||||||
|
|
||||||
// Controls
|
// Controls
|
||||||
|
|
||||||
/// Sets the control surfaces of the player aircraft.
|
|
||||||
///
|
|
||||||
/// \param sock The socket to use to send the command.
|
|
||||||
/// \param values An array representing position data about the aircraft. The format of values is
|
|
||||||
/// [Elevator, Aileron, Rudder, Throttle, Gear, Flaps]. If less than 6 values are
|
|
||||||
/// specified, the unspecified values will be left unchanged.
|
|
||||||
/// \param size The number of elements in values.
|
|
||||||
/// \returns 0 if successful, otherwise a negative value.
|
|
||||||
int psendCTRL(XPCSocket sock, float values[], int size);
|
|
||||||
|
|
||||||
/// Sets the control surfaces of the specified aircraft.
|
/// Sets the control surfaces of the specified aircraft.
|
||||||
///
|
///
|
||||||
/// \param sock The socket to use to send the command.
|
/// \param sock The socket to use to send the command.
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ int psendCTRLTest() // sendCTRL test
|
|||||||
|
|
||||||
// Execute 1
|
// Execute 1
|
||||||
// 0 pitch, roll, yaw
|
// 0 pitch, roll, yaw
|
||||||
psendCTRL(sock, CTRL, 3);
|
sendCTRL(sock, CTRL, 3, 0);
|
||||||
int result = getDREFs(sock, drefs, data, 6, sizes);
|
int result = getDREFs(sock, drefs, data, 6, sizes);
|
||||||
|
|
||||||
// Close socket
|
// Close socket
|
||||||
@@ -404,7 +404,7 @@ int psendCTRLTest() // sendCTRL test
|
|||||||
CTRL[0] = 0.2F;
|
CTRL[0] = 0.2F;
|
||||||
CTRL[1] = 0.1F;
|
CTRL[1] = 0.1F;
|
||||||
CTRL[2] = 0.1F;
|
CTRL[2] = 0.1F;
|
||||||
psendCTRL(sock, CTRL, 6);
|
sendCTRL(sock, CTRL, 6, 0);
|
||||||
int result = getDREFs(sock, drefs, data, 6, sizes);
|
int result = getDREFs(sock, drefs, data, 6, sizes);
|
||||||
|
|
||||||
// Close socket
|
// Close socket
|
||||||
@@ -429,7 +429,7 @@ int psendCTRLTest() // sendCTRL test
|
|||||||
CTRL[0] = -998.0F;
|
CTRL[0] = -998.0F;
|
||||||
CTRL[1] = -998.0F;
|
CTRL[1] = -998.0F;
|
||||||
CTRL[2] = -998.0F;
|
CTRL[2] = -998.0F;
|
||||||
psendCTRL(sock, CTRL, 6);
|
sendCTRL(sock, CTRL, 6, 0);
|
||||||
int result = getDREFs(sock, drefs, data, 6, sizes);
|
int result = getDREFs(sock, drefs, data, 6, sizes);
|
||||||
|
|
||||||
// Close socket
|
// Close socket
|
||||||
@@ -577,7 +577,7 @@ int psendPOSITest() // sendPOSI test
|
|||||||
|
|
||||||
// Execution 1
|
// Execution 1
|
||||||
pauseSim(sock, 1);
|
pauseSim(sock, 1);
|
||||||
psendPOSI(sock, POSI, 7);
|
sendPOSI(sock, POSI, 7, 0);
|
||||||
int result = getDREFs(sock, drefs, data, 7, sizes);
|
int result = getDREFs(sock, drefs, data, 7, sizes);
|
||||||
pauseSim(sock, 0);
|
pauseSim(sock, 0);
|
||||||
|
|
||||||
@@ -611,7 +611,7 @@ int psendPOSITest() // sendPOSI test
|
|||||||
pauseSim(sock, 1);
|
pauseSim(sock, 1);
|
||||||
float loc[3];
|
float loc[3];
|
||||||
getDREFs(sock, drefs, loc, 3, sizes);
|
getDREFs(sock, drefs, loc, 3, sizes);
|
||||||
psendPOSI(sock, POSI, 7);
|
sendPOSI(sock, POSI, 7, 0);
|
||||||
int result = getDREFs(sock, drefs, data, 7, sizes);
|
int result = getDREFs(sock, drefs, data, 7, sizes);
|
||||||
pauseSim(sock, 0);
|
pauseSim(sock, 0);
|
||||||
|
|
||||||
@@ -654,7 +654,7 @@ int psendPOSITest() // sendPOSI test
|
|||||||
|
|
||||||
// Execution 2
|
// Execution 2
|
||||||
pauseSim(sock, 1);
|
pauseSim(sock, 1);
|
||||||
psendPOSI(sock, POSI, 3);
|
sendPOSI(sock, POSI, 3, 0);
|
||||||
int result = getDREFs(sock, drefs, data, 7, sizes);
|
int result = getDREFs(sock, drefs, data, 7, sizes);
|
||||||
pauseSim(sock, 0);
|
pauseSim(sock, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user