221 Commits

Author SHA1 Message Date
Federico Reghenzani
a9eb41060c [Build] CameraCallbacks.cpp is missing in CMakeLists.txt 2020-12-04 22:47:21 +01:00
Sander Datema
388329b218 Add support for sendCOMM method
Credits go to user @angelsware, I just did a copy/paste from #120
2020-06-27 21:14:42 +02:00
Norman Princen
1f78a23351 Minimize SendTo and Read Socket Timeout Delays
SendTo and Read were using longer than necessary socket timeouts that may add to process time delay and stuttering.  They were also using different values between Window and Linux/Mac.  The timeouts are now standardized for all versions and coded in the same manner as the xplaneConnect.c functions.
2020-05-12 19:06:28 -07:00
Norman Princen
bb16ab9d94 Added includes for Linux and Mac socket select functions 2020-05-12 13:25:10 -07:00
Norman Princen
e2a6820d34 Minimize SendTo and Read Socket Timeout Delays
SendTo and Read were using longer than necessary socket timeouts that may add to process time delay and stuttering.  They were also using different values between Window and Linux/Mac.  The timeouts are now standardized for all versions and coded in the same manner as the xplaneConnect.c functions.
2020-05-12 13:18:47 -07:00
Norman Princen
121b3c92f8 Include sys/select.h for Linux and Mac 2020-05-12 13:15:38 -07:00
Norman Princen
138c738ba0 Minimize SendTo and Read Socket Timeout Delays
SendTo and Read were using longer than necessary socket timeouts that may add to process time delay and stuttering.  They were also using different values between Window and Linux/Mac.  The timeouts are now standardized for all versions and coded in the same manner as the xplaneConnect.c functions.
2020-05-12 12:23:07 -07:00
Norman Princen
d2486dd73b Minimize SendTo and Read Socket Timeout Delays
SendTo and Read were using longer than necessary socket timeouts that may add to process time delay and stuttering.  They were also using different values between Window and Linux/Mac.  The timeouts are now standardized for all versions and coded in the same manner as the xplaneConnect.c functions.
2020-05-12 10:25:01 -07:00
Norman Princen
6120869c2c Added HandlePosT function that combines functions of HandlePosi with HandleGetT 2020-05-02 14:46:46 -07:00
Norman Princen
26d85f755f Added HandlePosT function that combines functions of HandlePosi with HandleGetT 2020-05-02 14:45:15 -07:00
Norman Princen
2d3e9ccc24 Added handling of the POST message 2020-05-02 14:10:37 -07:00
Norman Princen
9869a448d8 Added HandlePosT function that combines HandlePosi with HandleGetT 2020-05-02 14:07:10 -07:00
Norman Princen
0473b5ea23 Added HandlePosT function 2020-05-02 13:58:50 -07:00
Norman Princen
6dcbec8974 Added SendTerr function 2020-05-01 05:04:05 -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
Jason Watkins
fb8940583e Make SetPosition and SetOrientation do nothing if all values are "default" placeholder 2019-10-17 12:35:54 -07:00
Jason Watkins
fbc5734fc4 Merge branch 'master' into develop 2019-08-08 19:28:45 -07:00
Jan Chaloupecky
fb2e916f0a Fixed Timer.h VS Item Type (#167) 2019-08-05 13:03:21 -07:00
Jason Watkins
a3be4cb1b6 Version 1.3-rc.1 (#138)
* Minor improvements to the handling of landing gear by the SetGear and HandlePOSI functions

* 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.

* Updated Java library for MATLAB, updated Java project, and updated Windows plugin binaries

* Rolled back Java version to 1.7 for MATLAB compatibility

* Update MessageHandlers.cpp

* Update DataManager.cpp

* 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.

* Finished individual pause functionality

* Update DataManager.cpp

* Updated flags to allow for individual pause commands

* Individual pause command documentation

* Updated flags to allow for individual pause commands

* Adding individual pause to documentation

* Updated flags to allow for individual pause commands

* Requested changes, cleaning

* Update CMakeLists.txt

Include "-fno-stack-protector" for linking and compiling for systems that do not have this have this flag as a default.

* Enabling AI after setting position (#118)

Previously, the code enabled the AI before setting the position of a/c, which negated its purpose.

* Updated XPlane SDK to version 2.1.3

* Resolve function ambiguity for std::abs on mac

Fixes #126

* Update copyright notice

* Update Windows binaries

* Update Linux binaries

* Update version numbers

* fix osx abs ambiguity (#142)

* fix indexing error (#143)

* 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

* 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

* Fixed tabs vs spaces indentations (#157)

* Java client BECN implementation (#155)

* 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

* Update service connection for azure pipeline

* Added Python3 compatible xpc client. (#156)

* Update Azure Pipelines service connection
2019-07-20 08:43:51 -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
Kai Lehmkuehler
136e0d5f2b fix indexing error (#143) 2018-11-05 12:00:36 -08:00
Kai Lehmkuehler
7fd4d4d6b2 fix osx abs ambiguity (#142) 2018-11-05 11:12:54 -08:00
Jason Watkins
cf6a45fb87 Update version numbers 2018-10-20 13:52:44 -07:00
Jason Watkins
c52deb3c45 Update Linux binaries 2018-10-19 18:03:14 -07:00
Jason Watkins
ad09d45a83 Update Windows binaries 2018-10-19 17:47:49 -07:00
Jason Watkins
df5e2fd198 Update copyright notice 2018-10-19 17:44:27 -07:00
Jason Watkins
e1105206a3 Resolve function ambiguity for std::abs on mac
Fixes #126
2018-10-19 17:35:20 -07:00
Jason Watkins
71d4d5aa27 Updated XPlane SDK to version 2.1.3 2018-10-19 17:35:20 -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
Milton Stafford
90d58497e0 Update CMakeLists.txt
Include "-fno-stack-protector" for linking and compiling for systems that do not have this have this flag as a default.
2018-10-19 17:35:19 -07:00
Michael Thompson
3ba09518ce Requested changes, cleaning 2018-10-19 17:35:19 -07:00
Michael Thompson
f3de032a99 Update DataManager.cpp 2018-10-19 17:35:17 -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
e96698a3fb Update DataManager.cpp 2018-10-19 17:35:16 -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