Commit Graph

86 Commits

Author SHA1 Message Date
Chris Teubert
985d5f94ba Updated C Tests Xcode Project 2015-05-20 10:23:09 -07:00
Chris Teubert
a3fa77d87c Fixed missing return in some c tests 2015-05-20 10:22:59 -07:00
Jason Watkins
60795b10a5 Added support for VIEW command in MATLAB client. 2015-05-08 14:38:37 -07:00
Jason Watkins
255877eee3 Added support for VIEW command to Java client. 2015-05-08 14:38:36 -07:00
Jason Watkins
039c92b2f1 Added support for VIEW command to Python client. 2015-05-08 14:38:36 -07:00
Jason Watkins
579cad0655 Added support for VIEW command to the C client. 2015-05-08 14:38:31 -07:00
Jason Watkins
e0c0f2f6bd Added support for sending multiple datarefs to the Java client. 2015-05-07 15:30:08 -07:00
Jason Watkins
5717b0f67a Added support for sending multiple datarefs to the Python client and fixed setCONN bug. 2015-05-07 15:30:08 -07:00
Jason Watkins
ec759cbbff Refactored C Tests
The C client tests were getting a bit unwieldy. Moved each block of tests to a separate file based on the functionality being tested. I've just put all of the test code directly in the headers because there doesn't seem to be any reason for the test headers to be included anywhere except in main.c.
2015-05-07 15:24:57 -07:00
Jason Watkins
24768ff140 Renamed Python client file to decrease ambiguity.
- File and class name no longer conflict.
 - Better matches the structure of Java client.
2015-05-05 14:47:39 -07:00
Jason Watkins
e9e95d988b Added support for setting speed brakes to Python client 2015-05-05 13:04:11 -07:00
Jason Watkins
873950a866 Added support for setting speed brakes to Java client. 2015-05-05 13:04:10 -07:00
Jason Watkins
b6e79d43fd Fixed sendCTRL test bugs. 2015-05-05 13:04:10 -07:00
Jason Watkins
c6f9669e36 Added support for setting speed brakes to C client. 2015-05-05 13:04:08 -07:00
Jason Watkins
35abb41e8e Updated Python client to support "switch" argument in SIMU command. 2015-05-01 15:13:27 -07:00
Jason Watkins
f88d319191 Updated Java client to support "switch" argument in SIMU command. 2015-05-01 15:07:42 -07:00
Jason Watkins
0b984c3d49 Updated C client to support "switch" argument in SIMU command. 2015-05-01 14:55:36 -07:00
Jason Watkins
10d21cc0df Finished implementing unit tests and fixed bugs found. 2015-05-01 13:50:48 -07:00
Jason Watkins
685d121edd Fixed several bugs found by unit tests. 2015-05-01 09:14:35 -07:00
Jason Watkins
31095b716b Updated Python client unit tests. 2015-05-01 09:14:34 -07:00
jwatkins42
9fb2274ae8 Started implementing tests 2015-05-01 09:14:32 -07:00
Chris Teubert
2c9982fea0 Remove Todo Comment 2015-04-30 11:16:51 -07:00
Chris Teubert
6ed9c67469 Fixed Typo 2015-04-30 11:16:51 -07:00
Jason Watkins
a9aba0e8de Fixed the order of the orientation drefs in POSI tests. 2015-04-30 09:22:44 -07:00
Chris Teubert
94db707414 removed sendReadTest-c 2015-04-30 09:04:29 -07:00
Chris Teubert
644dc8c5eb uncommented sendPOSITest 2015-04-30 09:04:28 -07:00
Chris Teubert
93c54e315a Compare 2d array 2015-04-30 09:04:28 -07:00
Chris Teubert
62a7f26289 getDREFS array should be 2d 2015-04-30 09:04:27 -07:00
Chris Teubert
1ae095b365 Y_agl should be elevation! 2015-04-30 09:04:27 -07:00
Chris Teubert
50fd1d7074 Made IP #define in C Tests 2015-04-30 09:04:22 -07:00
Chris Teubert
19e89e9edb Merge branch 'develop' of https://github.com/nasa/XPlaneConnect into develop 2015-04-29 14:23:14 -07:00
Chris Teubert
683257f628 Fixed header file name. 2015-04-29 14:23:00 -07:00
Chris Teubert
cec199410d #define IP address in CTests
For easy modification
2015-04-29 13:58:20 -07:00
Jason Watkins
f3e87a8216 Fixed duplicate declaration of socket in sendDREFTest. 2015-04-29 12:46:41 -07:00
Jason Watkins
54368bb65a C client API tweaks
- Swaped names of openUDP and aopenUDP.
 - openUDP is now the "automatic" version, requiring only the X-Plane IP address.
 - aopenUDP is now the "advanced" version, requiring both the X-Plane port and a client port.
 - Added support for passing NULL to sendTEXT.
2015-04-29 12:44:19 -07:00
Jason Watkins
dc4abba73a Fixed several issues in the C client unit tests.
- getDREF and sendDREF tests now work correctly.
 - Removed SendReadTest.
2015-04-29 12:44:02 -07:00
Jason Watkins
3b2e697158 Removed 'p' variants of the sendCTRL and sendPOSI functions from the C client. 2015-04-29 08:14:55 -07:00
Jason Watkins
326bae1dbf Updated C client unit tests.
- openTest now validates that "localhost" resolves to "127.0.0.1".
 - sendTEXTTest now sets and clears text. Note that since there is no way to externally verify the result of a TEXT command, the user must now step through this test using the debugger to fully verify functionality.
 - requestDREFTest renamed to getDREFTest.
 - getDREFTest now gets one dataref of each type except multidimensional arrays.
 - sendDREFTest now sets one dataref of each type except mulidimensional arrays.
 - sendDREFTest now attempts to set a read-only dataref. Need to work out how to test the result of this effectively.
 - psendCTRLTest & sendCTRLTest now test multiple values, default values and sending only some parameters.
 - Added psendPOSITest.
  - psendPOSITest & sendPOSIest now test multiple values, default values and sending only some parameters.
 - sendWYPTTest now clears waypoints before setting them.
2015-04-28 15:28:41 -07:00
Jason Watkins
0836c971f5 Deleted C++ test scripts.
- These tests create a great deal of duplicated work.
 - The only errors caught by these tests would be errors that occur in the C client only when compiled by a C++ compiler.
 - This error case is deemed unlikely enough that it is not worth the extra work to maintain two sets of tests.
2015-04-28 12:19:21 -07:00
Jason Watkins
8932edbd67 Renamed "setDREF" function back to "sendDREF". 2015-04-28 12:10:53 -07:00
Chris Teubert
31609f904f fixed bug in sendDATATest
The wrong array was being set in the test sendDATATest(). We should
make the test more complete so this can be caught.
2015-04-28 12:10:34 -07:00
Jason Watkins
1523405495 Fixed errors in MATLAB client and updated tests. 2015-04-21 15:21:05 -07:00
Jason Watkins
e191537bc9 Refactored MATLAB client to use the Java client internally.
- Still need to implement selectDATA for all languages.
2015-04-18 09:16:23 -07:00
Jason Watkins
ccc87f06f2 Updated Java client to conform to new API.
- Now uses a single socket.
 - Constructor parameter reordered to match C client.
 - Defaults to an OS assigned port instead of 49008.
2015-04-17 10:56:04 -07:00
Jason Watkins
55f3953955 Fixed errors and removed unused code in the C client.
- Fixed a buffer overflow in sendCTRL.
 - Fixed incorrect inderection in readUDP.
 - Removed unused usleep function.
 - Removed redundant include of WS2tcpip.h
 - Fixed widespread error where sendUDP's return value was not being checked correctly.
 - Updated signature of openUDP to place optional parameters at the end
 - Fixed bug in CTRL command where the buffer length was not correctly set.
 - Fixed setCONN to correctlly reset the client's socket.
2015-04-17 10:56:03 -07:00
Jason Watkins
556b3622ee Fixed C client tests to work with new client version. 2015-04-17 10:56:02 -07:00
Jason Watkins
a6196dece9 C client style tweaks.
- Standardized C client to use tabs.
 - Improved consistency of indentation.
 - Updated copyright and description headers.
2015-04-17 10:54:55 -07:00
Jason Watkins
cfeb01fc02 Added MATLAB client support for WYPT command. 2015-04-09 12:17:58 -07:00
Jason Watkins
2e05f57baf Added Java client support for WYPT command. 2015-04-09 12:17:53 -07:00
Jason Watkins
6417822a75 Added C test for WYPT command and fixed bugs in parseWYPT and sendWYPT. 2015-04-09 12:17:52 -07:00