Norman Princen
f17844565b
Changed drefs to const char* to fix compiler warnings
...
Also fixed compiler warning related to doGETDTEST on line 108
2020-04-18 22:35:09 -07:00
Norman Princen
38ddc0adb2
Changed drefs to const char* to fix compiler warnings
...
Also changed actual [7] to a double in doGETPTEST to fix compiler warning
2020-04-18 22:29:17 -07:00
Norman Princen
1ff2e1b93e
Changed drefs to const char* to fix compiler warnings
2020-04-18 22:23:36 -07:00
Norman Princen
132978b53d
Changed drefs to const char* to fix compiler warnings
2020-04-18 22:19:53 -07:00
Norman Princen
0713a95539
Tests.pyproj copied from Python Tests
2020-04-18 15:26:54 -07:00
Norman Princen
cf8f005b2e
Python3 Tests created
...
Created a Python3 compatible version of Tests.py
2020-04-18 15:24:54 -07:00
Jan Chaloupecky
c018d6c3be
Java client BECN implementation ( #155 )
2019-06-01 12:52:13 -07:00
Jason Watkins
df5e2fd198
Update copyright notice
2018-10-19 17:44:27 -07:00
Jan Zwiener
0e493920fa
sendPOSI command change (double for lat/lon/h) ( #111 )
...
* Updated POSI to use doubles for lat/lon/alt, as step size for floats was unacceptably large at high longitudes.
2018-10-19 17:35:05 -07:00
Jason Watkins
cdad81d190
Fixed windows.h include in Test.h
2017-05-03 09:29:02 -07:00
Chris Teubert
db92652bc2
Fixed issue with c tests running too fast (overwhelming plugin)
2017-05-02 16:51:58 -07:00
Jason Watkins
f9ca716f44
Updated C client test project to build on VS 2015
2016-07-09 17:38:12 -07:00
Chris Teubert
cfdd183214
Merge branch 'master' into develop
...
# Conflicts:
# xpcPlugin/XPlaneConnect/mac.xpl
# xpcPlugin/xpcPlugin.xcodeproj/project.pbxproj
2016-02-29 12:48:30 -08: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