Commit Graph

66 Commits

Author SHA1 Message Date
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
Chris Teubert
e60dde457c Changes to work with Mac
Changes include:
- Updating Project
- fixing sendto declaration
- Fixed some bugs in #if Mac sections
- Removed unneeded #includes (my compiler didn’t like them)
2015-04-16 12:58:49 -07:00
Jason Watkins
1a3f658774 Changed types from fixed width types in stdint to language primitive types guaranteed to be at least as big. 2015-04-16 10:13:18 -07:00
Jason Watkins
8591db96c0 Fixed various type inconsistencies to remove warning when building on Windows 2015-04-14 15:49:25 -07:00
Jason Watkins
118af68620 Tweaked log header to include compilation date and time. 2015-04-14 13:38:28 -07:00
Jason Watkins
5944fb5818 Expanded doc comments.
- Added doc comments to the DataManager class.
 - Added description of LOG_VERBOSITY levels and reset the value.
 - Added doc comment to DataMap.
 - Added doc comments to MessageHandlers class.
2015-04-14 13:36:43 -07:00
Jason Watkins
96d1d68123 Added X-Plane SDK copyright notice to Drawing.cpp 2015-04-14 12:02:18 -07:00
Jason Watkins
74dc2d22ed Cleaned up main file.
- Improved formatting in XPCPlugin.cpp to be consistent throughout the file.
 - Formatted copyright and license notices to be consistent with the rest of the codebase.
 - Replaced out of date documentation with a link to the GitHub wiki
 - Moved the writing of the log header to the Log class and expanded it to include useful information.
 - Updated Windows binaries
2015-04-14 11:46:48 -07:00
Jason Watkins
fe88204b57 Fixed an issue where the recvaddr was not set on Windows
- Also improved logging in UDPSocket
 - Resolves nasa/XPlaneConnect#39
2015-04-14 10:22:34 -07:00
Jason Watkins
52bf998632 Refactored message handling code into the MessageHandlers class.
- Re-enabled CONF messages sent in response to CONN commands.
 - There was a bug in the construction of the CONF message.
 - Resolves nasa/XPlaneConnect#31
2015-04-14 10:21:34 -07:00
Jason Watkins
6c51fa476e Refactored dataref manipulation operations to the DataManager class. 2015-04-13 15:53:38 -07:00
Jason Watkins
547eb4de18 Refactored various message-related operations into the Message class.
- Replaces the XPCMessage struct.
 - Messages are now read from a UDPSocket by the Message class.
 - Printing messages to the log is now handled by the Message class.
 - In the future, may extend this class with command-specific subclasses that encapsulate additional message parsing functionality.
2015-04-13 09:42:29 -07:00
Jason Watkins
2736cd86de Refactored socket code into UDPSocket class. 2015-04-13 09:23:25 -07:00
Jason Watkins
aa74bc57f5 Refactored drawing code into Drawing class. 2015-04-12 11:09:27 -07:00
Jason Watkins
a3a82f4a71 Refactored logging functionality into Log class. 2015-04-12 11:09:19 -07:00
Chris Teubert
48007932e5 updated Mac Binary 2015-04-09 13:13:15 -07:00
Jason Watkins
edba5c18ec Updated Windows binaries 2015-04-09 12:17:59 -07:00
Jason Watkins
6417822a75 Added C test for WYPT command and fixed bugs in parseWYPT and sendWYPT. 2015-04-09 12:17:52 -07:00
Jason Watkins
1a83517bee Implemented plugin support for handling WYPT commands. 2015-04-09 12:17:41 -07:00
Jason Watkins
97eb023df6 Added waypoint support to the plugin.
- The plugin now supports drawing a series of waypoints in the world.
 - The plugin supports add, remove, and clear operations
  - Add and remove take a list of waypoints
  - Clear removes all waypoints
2015-04-09 09:06:18 -07:00
Chris Teubert
354f51771e Updated Mac Binary 2015-04-08 09:21:25 -07:00
Jason Watkins
c3e284fc02 Added support for newlines in TEXT command. 2015-04-08 09:13:57 -07:00
Chris Teubert
f8372f6f4d Updates for Mac 2015-04-08 09:12:56 -07:00
Chris Teubert
10bf4d63ac Small fixes 2015-04-08 09:12:56 -07:00
Chris Teubert
1fd92edb02 Added missing #include's 2015-04-08 09:12:56 -07:00
Jason Watkins
1fb7a81336 Changed the draw phase of text messages to a more appropriate phase. 2015-04-07 16:26:56 -07:00
Jason Watkins
453ea65619 Added plugin support for drawing messages to screen.
- Either a single string will be drawn to screen, or nothing will be drawn.
 - Intelligently registers and unregisters drawing callback to minimize overhead when no message is being displayed.
 - Currently does not support newline characters (\r or \n). Newlines will cause text to be drawn overlapped.
2015-04-07 15:33:38 -07:00
Chris Teubert
82abd8e712 updated mac plugin 2015-04-07 11:20:14 -07:00
Jason Watkins
a1b3d91964 Updated Windows plugin binaries 2015-04-07 10:43:40 -07:00
Jason Watkins
79f632f9a3 Updated handleCTRL to support multiple aircraft.
- Resolves #12
2015-04-07 10:43:26 -07:00
Jason Watkins
a05ddb42be Modified parseCTRL and readCTRL to return a struct.
- Defined a new struct that contains the information sent by the CTRL command
 - Added some additional validation to parseCTRL.
 - Changed the return type of parseCTRL and removed now redundant pointer parameters.
 - Propagated return type change throughout the plugin code base.
2015-04-07 10:38:57 -07:00
Jason Watkins
04166d3bac Expanded multiplayer DREF list to include more DREFs for non-player aircraft. 2015-04-07 10:38:37 -07:00
Chris Teubert
0c2e786890 Removed "sim/" auto add feature
Removed “sim/“ auto add feature. There are some drefs (custom/art) that
do not start with “sim/“
2015-04-03 10:47:55 -07:00
Jason Watkins
3f0274a74c Updated Windows plugin binaries. 2015-04-01 16:21:55 -07:00
Chris Teubert
54bd73df9b Fixed bug with sendCTRL
sendCTRL was not setting the flap
2015-04-01 16:02:28 -07:00
Chris Teubert
f114554d9c Updated Mac xpcPlugin x-code project setup
Changed product name to mac, and updated build directory for Fat Plugin
format
2015-04-01 15:58:51 -07:00
Chris Teubert
00971567f8 Removed superfluous mac plugin 2015-03-31 15:02:30 -07:00
Jason Watkins
011558abfa Restructured plugin files to conform to "fat plugin" structure.
- Deleted platform specific folders from xpcPlugin folder.
 - Added new XPlaneConnect folder under xpcPlugin folder.
 - Moved and renamed windows binaries into architecture specific folders
 - Moved and renamed mac binary to XPlaneConnect root (single mac binary supports 32 & 64 bit)
 - Updated installation instructions in Readme
 - Cleaned up plugin Visual Studio project architecture
2015-03-25 15:46:25 -07:00
Jason Watkins
b91776e687 Removed files that were previously in version control that should be ignored. 2015-03-25 11:32:40 -07:00
Jason Watkins
78bcd96f0c Changed runtime linking settings on Windows
- The MSVC runtime is now statically linked for the 32bit and 64bit Windows plugins. This is done to avoid potentially requiring users to install an additional package from Microsoft to use the plugin.
 - The "Release" build configuration has also been removed, since it was not configured correctly. It will be re-added at a later date.
2015-03-25 10:09:00 -07:00