Commit Graph

25 Commits

Author SHA1 Message Date
Michael Thompson
e96698a3fb Update DataManager.cpp 2018-10-19 17:35:16 -07:00
Jan Zwiener
0e493920fa sendPOSI command change (double for lat/lon/h) (#111)
* Updated POSI to use doubles for lat/lon/alt, as step size for floats was unacceptably large at high longitudes.
2018-10-19 17:35:05 -07:00
Jason Watkins
48656f2b4c Minor improvements to the handling of landing gear by the SetGear and HandlePOSI functions 2018-10-19 17:35:05 -07:00
Jason Watkins
e91defde80 Fixed typo in DREF enum mapping 2017-06-22 16:02:46 -07:00
Chris Teubert
6631814438 Updated Copyright Year, Version #, Mac Binary 2017-05-03 10:20:59 -07:00
Jason Watkins
35285cac2f Updated SetPosition
- SetPosition now updates the aircraft's orientation after moving the aircraft
 - This should improve the handling of the aircraft when setting the position while paused and then unpausing
 - Fixes #91
2016-06-20 10:01:40 -07:00
Jason Watkins
ec151a2248 Update copyright year. 2016-03-01 16:31:14 -08:00
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
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
Jason Watkins
57be2704d1 Fixed typo in DataManager validation checks. 2015-04-30 09:17:44 -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
7f9be34d45 Y_AGL->Elevation Fix 2015-04-30 09:04:29 -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
Chris Teubert
f4129f5008 Added a comment 2015-04-28 12:10:33 -07:00
Jason Watkins
9109056437 Improved data logging. 2015-04-24 10:30:35 -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
6c51fa476e Refactored dataref manipulation operations to the DataManager class. 2015-04-13 15:53:38 -07:00