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
Chris Teubert
8d5af7e47e
Mac Binary
2015-05-06 10:39:40 -07:00
Chris Teubert
ed16227103
Changed mac C++ compiler to 98
2015-05-06 10:39:40 -07:00
Chris Teubert
5b7fc9fb14
Removed comma at end of enum
2015-05-06 10:39:40 -07:00
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
3030f67a9d
Add support for speed brakes to plugin HandleCtrl function.
2015-05-05 13:04:08 -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
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
Jason Watkins
1ee3f85b23
Added "switch" functionality to plugin SIMU message handler.
2015-05-01 14:48:33 -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
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
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
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
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
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
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
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
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
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
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
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
795e284ab2
A few mac fixes
2015-04-23 10:07:47 -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
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
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
db6180f1c9
Implemented std::hash<XPC::DREF> explicitly.
2015-04-16 15:01:34 -07:00