Thursday, 2 March 2017

Turbulence in the Buttkicker for AS16

We now managed to have turbulence feedback through the buttkickers.

Benny has made a C++  .dll that reads out the AS16 API (Actice sky weather software) and writes some numbers into user FSUIPC offsets. These then can be used inside a lua. This lua finally plays different, short sounds via the Prosim sound modul for the buttkickers. A random function in the lua makes the sounds play in different sequences, so no equal patterns can be heard anyhow.
(See also the post at flightX, in german language: http://flightx.net/index.php?thread/91863-as16-api-auslesen-as-btstrp-dll/)

The 5 sounds were made by Markus (https://737cockpit.info/). They have to be copied 3 times, so that you have 5 sounds each for the 4 different turbulence levels: Light, moderate, severe and heavy. Rename them, corresponding to the turbulence level. After having them assigned in Prosim, different soundlevels can be aplied to each sound, according to the turbulence level. The sounds are played via offsets, that are set by the lua.

Further, more detailed information  the LUA file and sounds can be downloaded here.

EDIT:
With the latest FSUIPC 4.971 / 5.11, Pete Dowson has integrated the readout of AS16 in FSUIPC. So things are easier now.

From FSUIPC changes:
"33. Additional offsets are provided for additional weather information provided by the recent
versions of Active Sky. These are:
8638 Ambient turbulence at aircraft (0-1000), 32-bit float
863C Exported ambient visibility (metres), 32-bit float (-ve if not supported)
8640 Exported precipitation type (0 none, 1 rain, 2 snow, 3 hail), 8-bit integer (Byte)
8641 Exported precipitation rate (0-4), 8-bit integer (Byte)
8642 In cloud flag (non-zero if aircraft is in cloud), Byte."

No comments:

Post a Comment

Note: only a member of this blog may post a comment.