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
Jason Watkins
c3e284fc02
Added support for newlines in TEXT command.
2015-04-08 09:13:57 -07:00
Chris Teubert
d18904bbe2
updates to Matlab Tests
2015-04-08 09:12:56 -07:00
Chris Teubert
1fd92edb02
Added missing #include's
2015-04-08 09:12:56 -07:00
Jason Watkins
8445c60e00
Added support for the TEXT command to the MATLAB client
2015-04-07 15:33:53 -07:00
Jason Watkins
a903859a3c
Added support for the TEXT command to the Java client.
2015-04-07 15:33:53 -07:00
Jason Watkins
46913596c5
Added support for the TEXT command to the C client.
2015-04-07 15:33:46 -07:00
Jason Watkins
15df14d334
Added multiplayer sendCTRL support to MATLAB client
...
- Also fixed a bug in the message format where gear was sent as a single rather than a byte.
2015-04-07 10:43:40 -07:00
Jason Watkins
1f81a4e54d
Added Java client support for multiplayer sendCTRL
2015-04-07 10:43:39 -07:00
Jason Watkins
abf2a426d2
Added C client support for multiplayer sendCTRL commands.
2015-04-07 10:43:39 -07:00
Jason Watkins
9d3e961a2f
Fixed bugs in C tests.
...
- math.h was not correctly included.
- the return value of sendCTRLtest sometimes incorrectly reported success.
2015-04-07 08:21:06 -07:00
Jason Watkins
1361288080
Updated IntelliJ project file to point to new test script location.
2015-04-03 15:35:25 -07:00
Chris Teubert
dce3a48f65
moved java test script to TestScripts folder
2015-04-03 15:19:56 -07:00
Chris Teubert
0c2e786890
Removed "sim/" auto add feature
...
Removed “sim/“ auto add feature. There are some drefs (custom/art) that
do not start with “sim/“
2015-04-03 10:47:55 -07:00
Chris Teubert
87819e5adc
C/CPP Test Fixes
...
Fixed incorrect DREF for flaps.
Fixed error where sendCTRL and sendPOSI were using abs instead of fabs.
2015-04-01 15:54:07 -07:00