From d89455eff3597b3f19fd6c6fda1662111b5887e3 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Thu, 29 Aug 2024 23:48:26 -0700 Subject: [PATCH] xplane sim: fix channel map --- ArduPlane/SA/xplane_plane.json | 7 ++++--- Tools/autotest/models/xplane_plane.json | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ArduPlane/SA/xplane_plane.json b/ArduPlane/SA/xplane_plane.json index de11f3b271129c..aeb39602f759a8 100644 --- a/ArduPlane/SA/xplane_plane.json +++ b/ArduPlane/SA/xplane_plane.json @@ -6,12 +6,13 @@ "sim/operation/override/override_joystick" : { "type" : "fixed", "value" : 1 }, "sim/operation/override/override_throttles" : { "type" : "fixed", "value" : 1 }, + "sim/operation/override/override_control_surfaces" : { "type" : "fixed", "value" : 1 }, # ailerons - "sim/flightmodel2/wing/elevator1_deg[12]" : { "type" : "angle", "range" : 20, "channel" : 1 }, # right rear - "sim/flightmodel2/wing/elevator1_deg[13]" : { "type" : "angle", "range" : -20, "channel" : 9 }, # left rear + "sim/flightmodel2/wing/elevator1_deg[12]" : { "type" : "angle", "range" : 20, "channel" : 4 }, # right rear + "sim/flightmodel2/wing/elevator1_deg[13]" : { "type" : "angle", "range" : -20, "channel" : 2 }, # left rear "sim/flightmodel2/wing/elevator1_deg[14]" : { "type" : "angle", "range" : 20, "channel" : 1 }, # front right - "sim/flightmodel2/wing/elevator1_deg[15]" : { "type" : "angle", "range" : -20, "channel" : 9 }, # front left + "sim/flightmodel2/wing/elevator1_deg[15]" : { "type" : "angle", "range" : -20, "channel" : 3 }, # front left # "sim/cockpit2/controls/wingsweep_ratio" : { "type" : "fixed", "value" : 0}, # wings unsweep when deploy (disabled) diff --git a/Tools/autotest/models/xplane_plane.json b/Tools/autotest/models/xplane_plane.json index de11f3b271129c..aeb39602f759a8 100644 --- a/Tools/autotest/models/xplane_plane.json +++ b/Tools/autotest/models/xplane_plane.json @@ -6,12 +6,13 @@ "sim/operation/override/override_joystick" : { "type" : "fixed", "value" : 1 }, "sim/operation/override/override_throttles" : { "type" : "fixed", "value" : 1 }, + "sim/operation/override/override_control_surfaces" : { "type" : "fixed", "value" : 1 }, # ailerons - "sim/flightmodel2/wing/elevator1_deg[12]" : { "type" : "angle", "range" : 20, "channel" : 1 }, # right rear - "sim/flightmodel2/wing/elevator1_deg[13]" : { "type" : "angle", "range" : -20, "channel" : 9 }, # left rear + "sim/flightmodel2/wing/elevator1_deg[12]" : { "type" : "angle", "range" : 20, "channel" : 4 }, # right rear + "sim/flightmodel2/wing/elevator1_deg[13]" : { "type" : "angle", "range" : -20, "channel" : 2 }, # left rear "sim/flightmodel2/wing/elevator1_deg[14]" : { "type" : "angle", "range" : 20, "channel" : 1 }, # front right - "sim/flightmodel2/wing/elevator1_deg[15]" : { "type" : "angle", "range" : -20, "channel" : 9 }, # front left + "sim/flightmodel2/wing/elevator1_deg[15]" : { "type" : "angle", "range" : -20, "channel" : 3 }, # front left # "sim/cockpit2/controls/wingsweep_ratio" : { "type" : "fixed", "value" : 0}, # wings unsweep when deploy (disabled)