Renamed "setDREF" function back to "sendDREF".

This commit is contained in:
Jason Watkins
2015-04-27 10:02:31 -07:00
parent 22a2adf5f2
commit 8932edbd67
11 changed files with 19 additions and 19 deletions

View File

@@ -362,7 +362,7 @@ int readDATA(XPCSocket sock, float data[][9], int rows)
/*****************************************************************************/
/**** DREF functions ****/
/*****************************************************************************/
int setDREF(XPCSocket sock, const char* dref, float value[], int size)
int sendDREF(XPCSocket sock, const char* dref, float value[], int size)
{
// Setup command
// 5 byte header + max 255 char dref name + max 255 values * 4 bytes per value = 1279

View File

@@ -133,7 +133,7 @@ int sendDATA(XPCSocket sock, float data[][9], int rows);
/// \param values An array of values representing the data to set.
/// \param size The number of elements in values.
/// \returns 0 if successful, otherwise a negative value.
int setDREF(XPCSocket sock, const char* dref, float value[], int size);
int sendDREF(XPCSocket sock, const char* dref, float value[], int size);
/// Gets the value of the specified dataref.
///

View File

@@ -93,7 +93,7 @@ int main()
const char* dref = "sim/cockpit/switches/gear_handle_status"; // Gear handle data reference
float gear = 0; // Stow gear
setDREF(sock, dref, &gear, 1); // Set gear to stow
sendDREF(sock, dref, &gear, 1); // Set gear to stow
// Simulate for 10 seconds
sleep(10);