CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/autotest/models/xplane_plane.json
Views: 1799
1
# XPlane DREF map file for a simple plane
2
# assumes: Aileron, Elevator, Throttle, Rudder, flaps
3
4
{
5
"settings" : { "debug" : 0 },
6
7
"sim/operation/override/override_joystick" : { "type" : "fixed", "value" : 1 },
8
"sim/operation/override/override_throttles" : { "type" : "fixed", "value" : 1 },
9
10
# forward throttle, up to 4 engines
11
"sim/flightmodel/engine/ENGN_thro_use[0]" : { "type" : "range", "range" : 1, "channel" : 3 },
12
"sim/flightmodel/engine/ENGN_thro_use[1]" : { "type" : "range", "range" : 1, "channel" : 3 },
13
"sim/flightmodel/engine/ENGN_thro_use[2]" : { "type" : "range", "range" : 1, "channel" : 3 },
14
"sim/flightmodel/engine/ENGN_thro_use[3]" : { "type" : "range", "range" : 1, "channel" : 3 },
15
16
# control surfaces, using yoke positions not surface overrides
17
"sim/joystick/yoke_roll_ratio" : { "type" : "angle", "range" : 1, "channel" : 1 },
18
"sim/joystick/yoke_pitch_ratio" : { "type" : "angle", "range" : 1, "channel" : 2 },
19
"sim/joystick/yoke_heading_ratio" : { "type" : "angle", "range" : 1, "channel" : 4 },
20
21
# assume flaps on channel 5
22
"sim/cockpit2/controls/flap_ratio" : { "type" : "range", "range" : 1, "channel" : 5 },
23
24
# joystick inputs
25
"axis6" : { "type" : "joyaxis", "channel" : 1, "input_min" : 0.2, "input_max" : 0.8 },
26
"axis5" : { "type" : "joyaxis", "channel" : 2, "input_min" : 0.2, "input_max" : 0.8 },
27
"axis4" : { "type" : "joyaxis", "channel" : 3, "input_min" : 0.8, "input_max" : 0.2 },
28
"axis2" : { "type" : "joyaxis", "channel" : 4, "input_min" : 0.2, "input_max" : 0.9 },
29
"axis3" : { "type" : "joyaxis", "channel" : 5, "input_min" : 0.2, "input_max" : 0.9 },
30
"button1" : { "channel" : 6, "mask" : 1 },
31
"button2" : { "channel" : 7, "mask" : 2 },
32
"button3" : { "type" : "joybutton", "channel" : 8, "mask" : 24 },
33
"button4" : { "type" : "joybutton", "channel" : 9, "mask" : 4 }
34
}
35
36