Commit Graph

367 Commits

Author SHA1 Message Date
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
1765d0a3c4 Updated plugin version number to 1.0.1. 2015-04-29 12:44:19 -07:00
Jason Watkins
955657bb96 Improved DataManager string Get and Set methods.
- The Get method no longer assumes unknown drefs are floats.
 - The Get method now properly accounts for the fact that the dref data type is a bitflag.
 - Binary drefs are now properly read and packed into `values`.
  - This is a rather inefficient process, as it quadruples the number of bytes we have to send out. Should look into better ways to do this in the future.
 - The Set method now handles data types correctly.
 - The Set method now supports binary datarefs.
 - Improved logging of edge cases.
 - Added a check to warn about setting read-only datarefs if verbose logging is enabled.
2015-04-29 12:44:18 -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
a508fb900a Merge branch 'release-1.0' into develop 2015-04-28 12:11:59 -07:00
Jason Watkins
8932edbd67 Renamed "setDREF" function back to "sendDREF". 2015-04-28 12:10:53 -07:00
Jason Watkins
22a2adf5f2 More static analysis fixes. 2015-04-28 12:10:36 -07:00
Jason Watkins
bdc4a04f1f Fixed minor issues reported by Visual Studio code analysis tool. 2015-04-28 12:10:35 -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
Chris Teubert
1883aa0afe mac Binary/new project structure 2015-04-28 12:10:34 -07:00
Chris Teubert
f4129f5008 Added a comment 2015-04-28 12:10:33 -07:00
Chris Teubert
3c43517e44 Fix Bug in getDREF Response
Fix Bug- readUDP loop in getDREF Response only ran once no matter what.
This wasn’t enough time for the plugin to send a response.

Note: You can try increasing the timeout, but the plugin has to have a
socket with a timeout of 1ms or less. If the timeout is higher than
that a lag is introduced.
2015-04-28 12:10:33 -07:00
Jason Watkins
a53c39a1a8 Fixed bug causing TEXT strings to not be cleared correctly.
- Includes updated Windows binaries.
2015-04-28 12:10:29 -07:00
Jason Watkins
d1df7f7b89 Deleted out of date user guides. The GitHub wiki now provides the information previously contained in these guides. 2015-04-28 12:04:42 -07:00
Chris Teubert
a46c7386f4 minor Java Update
- Spelling fix
2015-04-28 12:04:20 -07:00
Chris Teubert
c2ab55e2d0 Fix sendTEXT bug
sendText using the number 40 instead of message length in sendUDP call.
Messages would be cut off if longer than this
2015-04-24 11:00:53 -07:00
Jason Watkins
9109056437 Improved data logging. 2015-04-24 10:30:35 -07:00
Jason Watkins
625482dcdd Fixed bug in DATA message handler.
- Data validation checks were being executed in the wrong order. This caused most valid DATA commands to be reported as empty.
2015-04-24 10:30:34 -07:00
Jason Watkins
d03a6985dc Updated plugin version number. 2015-04-24 10:30:34 -07:00
Jason Watkins
1d766dbb09 Updated C example program to conform to the new client API. 2015-04-24 10:30:29 -07:00
Jason Watkins
f2ff888d27 Updated README for version 1.0 2015-04-23 16:20:55 -07:00
Jason Watkins
fe5689aaa2 Removed internal C client functions from the C client header. 2015-04-23 16:20:42 -07:00
Jason Watkins
1950685675 Fixed type errors
- Some instances of stdint types were reintroduced by a merge conflicgt. They have now been converted back to language types.
2015-04-23 14:52:38 -07:00
Jason Watkins
7da82f40dc Several variable name tweaks and error checking changes.
- Minimal functional changes. The primary purpose of these tweaks is to make the clients more consistent across languages.
2015-04-23 11:12:42 -07:00
Jason Watkins
02f4c92fce Tweaked param name on setDREF in C client. 2015-04-23 11:12:41 -07:00
Chris Teubert
df1c5e95e4 Updated java example 2015-04-23 10:19:11 -07:00
Chris Teubert
5ce94fe278 Mac Binary 2015-04-23 10:08:34 -07:00
Chris Teubert
41e72b81d2 Added a few comments 2015-04-23 10:08:17 -07:00
Chris Teubert
368c3bed20 fix- aopenUDP not returning socket 2015-04-23 10:08:05 -07:00
Chris Teubert
795e284ab2 A few mac fixes 2015-04-23 10:07:47 -07:00
Jason Watkins
83a010faa4 Fixed misnamed function in MATLAB client. 2015-04-22 15:07:09 -07:00
Jason Watkins
55feee68ed Tweaked XPCSocket in C client.
- Re-added xpcSocket name in the struct namespace
 - Removed unused open field.
2015-04-22 14:35:46 -07:00
Jason Watkins
8bbe3a0ec9 Fixed issues resolving Java classes.
- XPlaneConnect.jar is now only added once in openUDP.
 - Fully qualified all Java identifiers to resolve import issues.
2015-04-22 13:41:09 -07:00
Jason Watkins
6ecff63a61 Merge branch 'feature/linux' into develop 2015-04-22 10:17:23 -07:00
Jason Watkins
a6a99dc574 Updated plugin includes to build in gcc and added Linux binaries. 2015-04-22 10:16:34 -07:00
Jason Watkins
46fe5b0fe4 Updated plugin cmake file to actually work. 2015-04-22 10:16:11 -07:00
Jason Watkins
e5d7e8c442 Added a cmake file for the plugin. 2015-04-22 10:15:43 -07:00
Chris Teubert
85399365b1 Added OS-specific file separation in paths 2015-04-22 09:18:38 -07:00
Jason Watkins
bb5c6d8a28 Merge branch 'feature/consistency' into develop 2015-04-21 15:58:44 -07:00
Jason Watkins
1523405495 Fixed errors in MATLAB client and updated tests. 2015-04-21 15:21:05 -07:00
Jason Watkins
3ad2bb76cb Added selectDATA command to Java client and modified MATLAB client to use it. 2015-04-20 10:41:00 -07:00
Jason Watkins
fd96966911 Tweaked Java client docs and added readDATA command. 2015-04-18 09:16:23 -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
8e6819b80b Added doc comments to C client. 2015-04-18 09:16:15 -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
5ee49c7d81 Updated plugin.
- Removed dependency on C client.
 - The plugin now responds to client requests on the same port used to establish the connection.
Removed C client dependency from plugin.
2015-04-17 10:56:03 -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