Skip to content

Commit

Permalink
xplane sim: fix channel map
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Aug 30, 2024
1 parent b6fa556 commit d89455e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions ArduPlane/SA/xplane_plane.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 4 additions & 3 deletions Tools/autotest/models/xplane_plane.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d89455e

Please sign in to comment.