Commit Graph

79 Commits

Author SHA1 Message Date
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
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