Commit Graph

211 Commits

Author SHA1 Message Date
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
Jason Watkins
556b3622ee Fixed C client tests to work with new client version. 2015-04-17 10:56:02 -07:00
Jason Watkins
b7ace82649 Cleaned up drawing functions. 2015-04-17 10:56:02 -07:00
Jason Watkins
6ac20f0998 Cleaned up CTRL functions.
- Removed parseCTRL and readCTRL.
 - Tweaked variable type, order and naming.
 - Improved validation and error reporting.
 - Updated Interface Control Document to reflect adition of aircraft number to CTRL command.
2015-04-17 10:56:01 -07:00
Jason Watkins
0e6195c063 Cleaned up POSI functions.
- Removed readPOSI and parsePOSI functions. These were only used by the plugin, which no longer uses them.
 - Tweaked types, argument order, and names to improve concision and consistency with other functions.
 - Improved validation and error reporting.
2015-04-17 10:56:01 -07:00
Jason Watkins
80a1a2dcd2 Cleaned up DREF functions and tweaked printError.
- printError is now a varags function, and will print format strings for the message.
 - Removed several internal DREF functions from the header file.
 - Significantly improved error reporting in DREF functions.
 - Removed dynamic allocation for responses. Clients are now expected to provide fully allocated storage for getDREFs. An error message will be printed if the provided structure is too small.
 - Fixes nasa/XPlaneConnect#30
2015-04-17 10:56:00 -07:00
Jason Watkins
4e7e816da1 Cleaned up DATA related functions.
- Tweaked signatures to improve consistency and safety.
 - Improved error logging.
 - Removed parseDATA. When merged into readDATA, the meat of parseDATA is only a few lines of code.
2015-04-17 10:56:00 -07:00