Merge branch 'master' of gitorious.org:fg/fgdata
This commit is contained in:
commit
026fbdafbe
8 changed files with 36 additions and 9 deletions
|
@ -47,7 +47,7 @@
|
|||
<token>wind-dir</token>
|
||||
<text> degrees </text>
|
||||
<token>wind-speed-kn</token>
|
||||
<text> knots </text>
|
||||
<text> knots</text>
|
||||
<if>
|
||||
<not-empty>
|
||||
<token>gusts</token>
|
||||
|
@ -55,7 +55,20 @@
|
|||
<then>
|
||||
<text> gusts up to </text>
|
||||
<token>gusts</token>
|
||||
<text> knots </text>
|
||||
<text> knots</text>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<not-equals>
|
||||
<token>wind-from</token>
|
||||
<token>wind-to</token>
|
||||
</not-equals>
|
||||
<then>
|
||||
<text> varying between </text>
|
||||
<token>wind-from</token>
|
||||
<text> and </text>
|
||||
<token>wind-to</token>
|
||||
<text> degrees</text>
|
||||
</then>
|
||||
</if>
|
||||
<text>. </text>
|
||||
|
|
|
@ -608,10 +608,24 @@ Here's an example of how to use an axis to adjust the elevator trim:
|
|||
If you want you can specify a time interval for processing digital hat repeats. For example
|
||||
if you want an interval of 0.05 seconds, which will effect up to 20 repeats per second, then add
|
||||
the following to the property:
|
||||
</p>
|
||||
<PRE>
|
||||
--prop:/input/joysticks/js/axis[1]/interval-sec=0.05
|
||||
</PRE>
|
||||
<br>
|
||||
<p>
|
||||
If you want specify a delay time before interval repeats action. For example
|
||||
if you want an interval of 0.05 seconds after 1 second the axis has been pressed, then add
|
||||
the following to the property:
|
||||
</p>
|
||||
<PRE>
|
||||
--prop:/input/joysticks/js/axis[1]/delay-sec=1
|
||||
--prop:/input/joysticks/js/axis[1]/interval-sec=0.05
|
||||
</PRE>
|
||||
<p>
|
||||
Similarly, release-delay-sec is how long to wait after releasing the button.
|
||||
</p>
|
||||
<br>
|
||||
<P>
|
||||
You could also bind some axes to brakes, so that you can use positions
|
||||
between between 0.0 (no brakes) and 1.0 (full brakes).
|
||||
|
|
|
@ -1002,7 +1002,7 @@ var teleport = func(airport = "", runway = "", lat = -9999, lon = -9999, alt = 0
|
|||
setprop("/sim/presets/offset-azimuth-nm", azimuth);
|
||||
setprop("/sim/presets/glideslope-deg", glideslope);
|
||||
setprop("/sim/presets/heading-deg", heading);
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ var load_flight_sel = nil;
|
|||
var load_flight = func {
|
||||
var load = func(n) {
|
||||
fgcommand("load", props.Node.new({ file: n.getValue() }));
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
}
|
||||
if (load_flight_sel == nil)
|
||||
load_flight_sel = FileSelector.new(load, "Load Flight", "Load",
|
||||
|
|
|
@ -85,7 +85,7 @@ var startTutorial = func {
|
|||
var presets = tutorialN.getChild("presets");
|
||||
if (presets != nil) {
|
||||
props.copy(presets, props.globals.getNode("/sim/presets"));
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
|
||||
if (getprop("/sim/presets/on-ground")) {
|
||||
var eng = props.globals.getNode("/controls/engines");
|
||||
|
@ -104,7 +104,7 @@ var startTutorial = func {
|
|||
|
||||
# <init>
|
||||
do_group(tutorialN.getNode("init"));
|
||||
is_running(1); # needs to be after "presets-commit"
|
||||
is_running(1); # needs to be after "reposition"
|
||||
display.clear();
|
||||
display.show();
|
||||
|
||||
|
|
|
@ -1434,7 +1434,7 @@
|
|||
<script>apply()</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
<command>reposition</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
|
|
|
@ -363,7 +363,7 @@
|
|||
</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
<command>reposition</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
var teleport = func(lat, lon) {
|
||||
setprop("/sim/presets/latitude-deg", lat);
|
||||
setprop("/sim/presets/longitude-deg", lon);
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
}
|
||||
|
||||
var on_water = func(lat, lon) {
|
||||
|
|
Loading…
Reference in a new issue