Joystick Override Datarefs

X-Plane has a means which allows several main controls to override the configured Joystick. For example, Aileron, Elevator, Rudder.

Make sure that the type of the value for the Sim is boolean.

Currently, I set these to 1 when the XpluginEnable is called, to 0 when XpluginDisable is called.

Override DatarefOverrides thisNotes
sim/operation/override/override_joystick_roll (bool)sim/joystick/yoke_roll_ratioOverride just roll control.
Use sim/cockpit2/controls/yoke_roll_ratio
sim/operation/override/override_joystick_pitch (bool)sim/joystick/yoke_pitch_ratio.Override just roll control.

Use sim/cockpit2/controls/yoke_pitch_ratio
sim/operation/override/override_joystick_heading (bool)sim/joystick/yoke_heading_ratioOverride just heading (yaw) control (disables auto-coordination).
Use sim/cockpit2/controls/yoke_heading_ratio
sim/operation/override/override_throttlessim/cockpit2/engine/actuators/throttle_ratio_all
Override the throttles. Use sim/flightmodel/engine/ENGN_thro_use[n] (or Deprecated sim/flightmodel/engine/ENGN_thro_override) to control them on override.
sim/operation/override/override_gearbrakeKeyboard ā€œGā€ controlOverride gear and brake status
Use sim/cockpit2/controls/gear_handle_down

The throttle joystick moves the value of throttle_ratio_all, and other things. After override_throttles is set to 1, you can change throttle by change value of sim/flightmodel/engine/ENGN_thro_override

sim/joystick/yoke_roll_ratio sim/joystick/yoke_yaw_ratio