Commit Graph

282 Commits

Author SHA1 Message Date
Jason Watkins
01b55f97c4 Fixed bug in handling of CTRL command
Several of the values were not checked for the "don't change" sentinel value.
2015-05-05 13:04:09 -07:00
Jason Watkins
c6f9669e36 Added support for setting speed brakes to C client. 2015-05-05 13:04:08 -07:00
Jason Watkins
3030f67a9d Add support for speed brakes to plugin HandleCtrl function. 2015-05-05 13:04:08 -07:00
Jason Watkins
8f4d50929f Cleaned up implementation of getDREFs in the Java client.
- Removed unnecessary loop to try to read several times.
 - Fixed the way that readUDP detects the length of received packets.
2015-05-05 13:04:07 -07:00
Jason Watkins
7f1af73c3c Moved XPData array to DataManager and removed DataMaps.
After removing C++11 features, only the declaration of XPData remained in DataMaps, making it somewhat pointless to separate XPData from DataManager.
2015-05-05 13:04:03 -07:00
Jason Watkins
aeceb87f1d Merge latest changes from release-1.0.1
Removing all C++11 features touches many parts of many files, so better merge the changes into develop ASAP to prevent future conflicts.
2015-05-05 08:33:54 -07:00
Jason Watkins
796fd0f7aa Fix for Linux builds 2015-05-04 16:09:45 -07:00
Jason Watkins
8ed6b39779 Increased the timeout for select in the C client on Windows. 2015-05-04 14:58:55 -07:00
Chris Teubert
99e94015c4 Added newline at end of file 2015-05-04 11:33:12 -07:00
Chris Teubert
79d4897206 Added newline at EOF
So X-Code won’t complain anymore.
2015-05-04 10:59:16 -07:00
Chris Teubert
63b9ac25d7 Mac binary 2015-05-04 10:30:21 -07:00
Chris Teubert
c44f521842 pauseSim should be returning int on error 2015-05-04 10:30:10 -07:00
Jason Watkins
23ee994b8d Merge branch 'simu-switch' into develop
Resolves #52
2015-05-01 15:22:07 -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
dcdd63d0c3 Updated MATLAB client to support "switch" argument in SIMU command. 2015-05-01 15:08:31 -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
1ee3f85b23 Added "switch" functionality to plugin SIMU message handler. 2015-05-01 14:48:33 -07:00
Jason Watkins
7b462b5f78 Merge branch 'example-improvements' into develop
Resolves #36
2015-05-01 14:29:16 -07:00
Jason Watkins
200eadd1e9 Updated Java example.
- Removed setCONN, since very few users should need it in the future.
 - Added test at the beginning of the example to ensure that the client is connected to X-Plane.
2015-05-01 14:28:33 -07:00
Jason Watkins
d2282c7695 Added check to MATLAB example to ensure connection to X-Plane. 2015-05-01 14:26:12 -07:00
Jason Watkins
472ed4feac Added check to beginning of C example to ensure that the client is connected to X-Plane. 2015-05-01 14:20:44 -07:00
Jason Watkins
00efb7e089 Merge branch 'feature-python' into develop
Resolves #8
2015-05-01 13:52:18 -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
Jason Watkins
2a874eb514 Refactored Python client to match other clients. 2015-05-01 09:14:33 -07:00
jwatkins42
18aa9fa251 Fixed several bugs based on test results 2015-05-01 09:14:33 -07:00
jwatkins42
9fb2274ae8 Started implementing tests 2015-05-01 09:14:32 -07:00
jwatkins42
4aaca80d3e Added PyTools project files for Python API 2015-05-01 09:14:32 -07:00
jwatkins42
fd63976e4d Finished basic Python impl. 2015-05-01 09:14:31 -07:00
jwatkins42
04897b878e More python! 2015-05-01 09:14:31 -07:00
jwatkins42
b6233ab5d7 Started implementation of Python version of XPC client. 2015-05-01 09:14:30 -07:00
Jason Watkins
69dadea027 Merge branch 'feature-logging' into develop 2015-04-30 16:26:34 -07:00
Jason Watkins
d735e0f3ad Updated plugin logging.
- The plugin now keeps the log file open for the duration of its lifetime.
 - This greatly improves the performace of the logging component, which was previously a significant bottleneck even at low logging verbosity.
 - The log now prints timestamps to the millisecond.
2015-04-30 16:24:18 -07:00
Jason Watkins
aaf25a9933 Updated Log to use C++ headers cstdio and ctime instead of stdio.h and time.h. 2015-04-30 15:11:14 -07:00
Jason Watkins
37eb6b6b03 Added X-Plane version information to the XPC log file. 2015-04-30 13:53:02 -07:00
Jason Watkins
e21006baee Added Release build settings for Windows to plugin.
- Release builds in Visual Studio aggressively optimize the plugin.
 - Results in nearly a 7x reduction in binary size.
2015-04-30 13:47:13 -07:00
Jason Watkins
85e3ce91dd Removed -nodefaultlibs flag on Linux 64 bit builds. 2015-04-30 13:03:55 -07:00
Jason Watkins
8898ff9be9 Added explicit -m64 flag to CMakeLists. 2015-04-30 13:03:54 -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
b243306866 Added namespace qualifiers for memcpy in Message logging. 2015-04-30 11:03:42 -07:00
Jason Watkins
781fc390c2 Fixed bug in array initialization for SIMU command. 2015-04-30 10:03:24 -07:00
Jason Watkins
ed8d065642 Explicitly initialize sock to ~0 if WSAStartup fails. 2015-04-30 09:32:19 -07:00
Jason Watkins
a9aba0e8de Fixed the order of the orientation drefs in POSI tests. 2015-04-30 09:22:44 -07:00
Jason Watkins
57be2704d1 Fixed typo in DataManager validation checks. 2015-04-30 09:17:44 -07:00
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