Commit Graph

235 Commits

Author SHA1 Message Date
Jason Watkins
0533480b8e Updated LOG_VERBOSITY description. 2015-04-30 09:07:11 -07:00
Jason Watkins
902aa006e8 Updated C client socket timeout.
The C client previously set a very short read timeout because it was required
 by the plugin. To compensate for this on the client side, we would try to
read several times in a loop. Since the plugin no longer uses the C client for
networking, we can do away with the loops and set a proper timeout.
2015-04-30 09:04:32 -07:00
Jason Watkins
39c2f58a54 Fixed issues related to overwriting values in POSI commands.
- Added global position drefs for multiplayer aircraft.
 - Added checks for the "don't change" sentinel value to SetPosition, SetOrientation and SetFlaps.
 - Reordered validation checks in SetGear to be consistent with the above methods.
 - Removed some now redundant "don't change" value checks in the MessageHandlers class.
2015-04-30 09:04:31 -07:00
Chris Teubert
cde91d84c9 Mac Binary 2015-04-30 09:04:31 -07:00
Chris Teubert
e512cdd981 Pause should be an array 2015-04-30 09:04:30 -07:00
Chris Teubert
7f9be34d45 Y_AGL->Elevation Fix 2015-04-30 09:04:29 -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
Chris Teubert
761ee793ba Updates to use new function names 2015-04-29 13:57:50 -07:00
Jason Watkins
f3e87a8216 Fixed duplicate declaration of socket in sendDREFTest. 2015-04-29 12:46:41 -07:00
Jason Watkins
2d355ebb73 Fixed a bug in Drawing::SetMessage
- The terminating null character of the message string is now written.
 - Along with baef257, this fully resolves #60.
2015-04-29 12:44:20 -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
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