Commit Graph

48 Commits

Author SHA1 Message Date
Norman Princen
9869a448d8 Added HandlePosT function that combines HandlePosi with HandleGetT 2020-05-02 14:07:10 -07:00
Norman Princen
c49168d815 Improved accuracy of HandleGetT terrain probe and requested changes 2020-05-01 04:59:43 -07:00
Norman Princen
70b4af90b2 Improved accuracy of HandleGetT terrain probe
Follow the process in the following post to get accurate results:
// https://forums.x-plane.org/index.php?/forums/topic/38688-how-do-i-use-xplmprobeterrainxyz/&page=2
Also added the ground velocity vector to the output. This is used for carrier landing where "ground" is moving.
2020-04-19 13:47:18 -07:00
Norman Princen
54f5e43ddc Revert "Improved accuracy of HandleGetT terrain probe"
This reverts commit f630dbdf07.
2020-04-19 13:43:55 -07:00
Norman Princen
f630dbdf07 Improved accuracy of HandleGetT terrain probe
Follow the process in the following post to get accurate results:
// https://forums.x-plane.org/index.php?/forums/topic/38688-how-do-i-use-xplmprobeterrainxyz/&page=2

Also added the ground velocity vector to the output.  This is used for carrier landing where "ground" is moving.
2020-04-19 13:33:00 -07:00
Norman Princen
f37f4a4aae Revert "Improved HandleGetT accuracy"
This reverts commit d61f70faad.
2020-04-19 11:36:51 -07:00
Norman Princen
d61f70faad Improved HandleGetT accuracy
Also added the ground velocity output to TERR message so can handle landing on aircraft carrier (moving ground).
2020-04-19 10:03:58 -07:00
Norman Princen
5d31544476 Changed Lat/Lon/h to double in GetP 2020-04-18 11:30:36 -07:00
Kai Lehmkuehler
c0abcf729f Configurable Chase Camera (#188)
* ignore binaries

* Add terrain probe

* update camera system

* change to tabs

* formatting

* compiles on windows 10

* use local view type enum

* basic view type must always be changed

* Code formatting
2019-11-15 07:02:54 -08:00
Kai Lehmkuehler
1fd6400a98 Terrain height probe (#186)
* ignore binaries

* Add terrain probe

* requested changes part 1

* try mac os build check

* Revert "try mac os build check"

This reverts commit 46fa8adde4f825c3a7f2a8bea7f543ad55a79765.

* update debug message label
2019-11-06 08:45:54 -08:00
Jason Watkins
2ff4497de5 Fix incorrect gear read in HandlePosi 2019-10-17 15:22:03 -07:00
Jan Chaloupecky
1c082d7730 Added MS Azure Dev Ops CI integration (#162)
* Do not build for i386 on macOS

Use ARCHS_STANDARD  to avoid the error “The i386 architecture is deprecated. You should update your ARCHS build setting to remove the i386 architecture.”

* Fixed missing include

The Visual Studio solution was not compiling

* Fixed isnan ambigious refernce

Ambigious reference when compiling on travis

https://stackoverflow.com/questions/33770374/why-is-isnan-ambiguous-and-how-to-avoid-it

* Set MSVC warning level to 3

Too many warnings were generated when building a Release build making Travis job to fail because of too much output

* Use default toolset for Visual Studio

AppVeyor recommends to set the default toolset

* #include <cstdint>

* Use MSVC ToolsVersion="14.0"

# Conflicts:
#	xpcPlugin/xpcPlugin/xpcPlugin.vcxproj

* Removed binaries from repository

# Conflicts:
#	xpcPlugin/XPlaneConnect/64/win.xpl
#	xpcPlugin/XPlaneConnect/win.xpl

* Added ms azure ci

xcode

linux

linux + macos

linux + macos

removed branch filter

win tests

win tests

Test all platfroms

artifacts tests

* output all binaries to ‘XPlaneConnect’

All platforms produce a binary in
xpcPlugin/XPlaneConnect/
xpcPlugin/XPlaneConnect/64/

* Added ms azure GH deploy

deploy stage

GH release test

trigger tags

* Clean up yml file

- Added variables
- Added job decriptions

* Ignore script to ignore .exp files

+ fixed output path

* Renamed ms azure GH connection
2019-06-08 08:00:32 -07:00
Jan Chaloupecky
90ccec0d07 Fixed tabs vs spaces indentations (#157) 2019-03-15 08:29:10 -07:00
Jan Chaloupecky
50335c4a5c Added UDP multicast for plugin discovery (#153)
* Added Timer

* Added UDPSocket::GetAddr

* Added MessageHandlers::SendBeacon()

* PoC of starting a timer on PluginEnable

* C++11

* Added Timer to xcode project

* C++11 in cmake

* added Timer to cmake

* use function pointer in Timer

* moved Timer to namespace

+ wait for thread to join when stopping the timer

* Windows: changed uint to unisgned short

* Windows: Added Timer.h/cpp to project

* GetAddr static

* Send xplane and plugin version with BECN

* SendBeacon with params

* fixed file copyrights

* Include functional

to fix Linux compile error

* review fixes

* Send plugin receive port in BECN

* review fixes
2019-03-14 07:49:43 -07:00
Kai Lehmkuehler
f9bfd6e3b9 Runway camera location control (#144)
* update ignore

* basics working

* set cam pos remotely

* log cam position

* keep default behaviour, if short view message is received

Compatibility with existing software

* all to tabs

* rename variable

* option to use camera direction fields
2018-11-14 07:56:29 -08:00
Jason Watkins
df5e2fd198 Update copyright notice 2018-10-19 17:44:27 -07:00
Michael Thompson
012df27187 Enabling AI after setting position (#118)
Previously, the code enabled the AI before setting the position of a/c, which negated its purpose.
2018-10-19 17:35:19 -07:00
Michael Thompson
3ba09518ce Requested changes, cleaning 2018-10-19 17:35:19 -07:00
Michael Thompson
0aa92297bb Finished individual pause functionality 2018-10-19 17:35:17 -07:00
Michael Thompson
80e21835b6 Added pause functionality for individual a/c
Adds new cases such that:
0: Unpauses all a/c
1: Pauses all a/c
2: Switches case for all a/c
100:119: Pauses a/c 0:19
200:219: Unpauses a/c 0:19

Updates log messages.

Keeps the 0,1,2 arguments as they previously were.
2018-10-19 17:35:17 -07:00
Michael Thompson
dcef8c9391 Update MessageHandlers.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
Chris Teubert
6631814438 Updated Copyright Year, Version #, Mac Binary 2017-05-03 10:20:59 -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
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
Jason Watkins
1ee3f85b23 Added "switch" functionality to plugin SIMU message handler. 2015-05-01 14:48:33 -07:00
Jason Watkins
781fc390c2 Fixed bug in array initialization for SIMU command. 2015-04-30 10:03:24 -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
e512cdd981 Pause should be an array 2015-04-30 09:04:30 -07:00
Jason Watkins
bdc4a04f1f Fixed minor issues reported by Visual Studio code analysis tool. 2015-04-28 12:10:35 -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
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
41e72b81d2 Added a few comments 2015-04-23 10:08:17 -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
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
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
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