Tag Archives: datarefs

XGoFlight 2.1 brings full customization for RP48 rotaries, array dataref support, and GA MCPPRO profile

Although it has been a mere two and a half weeks since the release of XGoFlight 2.0, I am pleased to announce the release of XGoFlight 2.1, which adds full customization for the RP48 rotaries, array dataref support, and a general aviation MCPPRO profile.

Customizing RP48 rotaries

When I started the XGoFlight project, my goal was to create the most flexible and customizable GoFlight plugin on the market.  In all versions prior to XGF 2.1, the rotaries could only be used with a limited number of preset actions.  After receiving some user feedback, I decided it was time to extend command and dataref-based customization to the RP48 rotaries.  An example JSON configuration for the rotaries is included below:

Let’s break it down…

  1. Uses preset action: spoiler
  2. Each turn to the right will increment the auto brake by one, whereas each turn to the left will decrement the auto brake by one.  The minimum auto brake level is zero, which usually signifies RTO.  The maximum auto brake level is 5, which usually signifies MAX.
  3. Each turn to the right will execute the command defined by “command_on,” whereas each turn to the left will execute the command defined by “command_off.”  In this case, turning the rotary left will turn the XPDR off, whereas turning the rotary right will turn the XPDR on.
  4. Uses preset action: engine_apu_switch

Using array datarefs

While most X-Plane datarefs contain only one integer or float value, some datarefs contain multiple integers or float values.  The datarefs that contain multiple values are called arrays.  In plugins/DataRefs.txt, those datarefs are indicated with brackets, as pictured below:

We will use the two “generator_on” datarefs for this example.  The first dataref (sim/cockpit2/electrical/generator_on) is an array of eight integers.  The following example can be used with the RP48, P8, or WP6 for any aircraft with two generators.

The number located within the brackets is called the offset.  Every array starts with a zero offset.  In this example, generator_on[0] is the first generator, and generator_on[1] is the second generator.  This pattern is relatively consistent across all X-Plane datarefs.

MCPPRO: General aviation profile

The default MCPPRO profile is geared toward jet aircraft with complex autopilot systems.  The default profile supports VNAV, autothrottle, and other functionality not seen in a common Cessna 172.  The general aviation profile provides a non-specific solution for users looking to more closely match that class of aircraft.  Below is a comparison between default and GA profiles (only differences are highlighted):

Default GA
A/T ARM NORMAL
SPEED NORMAL
LVL CHG NORMAL
VNAV NORMAL
ALT HLD ARM SYNC/HOLD
V/S NORMAL PITCH SYNC
V/S WHEEL NORMAL NOSE UP/DOWN
DISENGAGE NORMAL

To use the general aviation MCPPRO profile, add the following to your xgoflight.json configuration file.

 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Hardware compatibility for payware aircraft

For those of us who do not use the keyboard and mouse with X-Plane, datarefs and commands are required for a proper experience.  For the payware aircraft that rely on standard X-Plane datarefs and commands, full compatibility is available out of the box.  As payware aircraft become increasingly complex, they increasingly require non-native datarefs to achieve full compatibility with external hardware.  I have started to create a list of payware aircraft that provide datarefs or out-of-box compatibility for customers.  For the time being, I recommend avoiding those aircraft vendors who do not provide full lists of datarefs.

Full list

  • Boeing 727 by FlyJSim
  • Bombardier CRJ-200 by JRollon
  • Bombardier Dash 8 by FlyJSim
  • Challenger 300 by ddenn

Default datarefs (out-of-box compatibility)

  • Boeing 787 by Heinz
  • Embraer 170LR by SSG
  • Seamax 1.2 by JRollon
  • Twin Otter by X-Aviation
  • T-34c Mentor by JRollon

Limited list

  • Boeing 777 Worldliner (autopilot only)

None

  • A320 Neo by JARDesign
  • Airbus aircraft by Peter Hagar

 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS