1
0
Fork 0

Stuart Buchanan:

I have a simple update to Protocol/playback.xml. It
improves on the existing version by recording flight
control surface, airspeed, engine RPM and gear status.
It makes for quite nice demoes, though I've only
really tested it with the C172, Hunter and Concorde.
This commit is contained in:
ehofman 2005-10-10 08:08:45 +00:00
parent b47560fd77
commit f6894e4020

View file

@ -1,5 +1,12 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!--
Usage:
Recording: fgfs --generic=file,out,20,flight.out,playback
Playback: fgfs --generic=file,in,20,flight.out,playback --fdm=null
-->
<PropertyList> <PropertyList>
<generic> <generic>
@ -14,7 +21,7 @@
<name>aileron</name> <name>aileron</name>
<type>float</type> <type>float</type>
<format>%f</format> <format>%f</format>
<node>/controls/flight/aileron</node> <node>/controls/flight/aileron[0]</node>
</chunk> </chunk>
<chunk> <chunk>
@ -55,22 +62,24 @@
<chunk> <chunk>
<name>flaps</name> <name>flaps</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/flight/flaps</node> <node>/controls/flight/flaps</node>
</chunk> </chunk>
<chunk> <chunk>
<name>slats</name> <name>slats</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/flight/slats</node> <node>/controls/flight/slats</node>
</chunk> </chunk>
<chunk> <chunk>
<name>speedbrake</name> <name>speedbrake</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/flight/speedbrake</node> <node>/controls/flight/speedbrake</node>
</chunk> </chunk>
<!-- Engines --> <!-- Engines -->
<chunk> <chunk>
<name>throttle</name> <name>throttle</name>
@ -88,34 +97,40 @@
<chunk> <chunk>
<name>starter</name> <name>starter</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[0]/starter</node> <node>/controls/engines/engine[0]/starter</node>
</chunk> </chunk>
<chunk> <chunk>
<name>starter</name> <name>starter</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[1]/starter</node> <node>/controls/engines/engine[1]/starter</node>
</chunk> </chunk>
<chunk> <chunk>
<name>fuel-pump</name> <name>fuel-pump</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[0]/fuel-pump</node> <node>/controls/engines/engine[0]/fuel-pump</node>
</chunk> </chunk>
<chunk> <chunk>
<name>fuel-pump</name> <name>fuel-pump</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[1]/fuel-pump</node> <node>/controls/engines/engine[1]/fuel-pump</node>
</chunk> </chunk>
<chunk> <chunk>
<name>cutoff</name> <name>cutoff</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[0]/cutoff</node> <node>/controls/engines/engine[0]/cutoff</node>
</chunk> </chunk>
<name>cutoff</name> <name>cutoff</name>
<chunk> <chunk>
<name>cutoff</name> <name>cutoff</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[1]/cutoff</node> <node>/controls/engines/engine[1]/cutoff</node>
</chunk> </chunk>
@ -148,22 +163,26 @@
<chunk> <chunk>
<name>magnetos</name> <name>magnetos</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[0]/magnetos</node> <node>/controls/engines/engine[0]/magnetos</node>
</chunk> </chunk>
<chunk> <chunk>
<name>magnetos</name> <name>magnetos</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[1]/magnetos</node> <node>/controls/engines/engine[1]/magnetos</node>
</chunk> </chunk>
<chunk> <chunk>
<name>ignition</name> <name>ignition</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[0]/ignition</node> <node>/controls/engines/engine[0]/ignition</node>
</chunk> </chunk>
<chunk> <chunk>
<name>ignition</name> <name>ignition</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/engines/engine[1]/ignition</node> <node>/controls/engines/engine[1]/ignition</node>
</chunk> </chunk>
@ -172,18 +191,21 @@
<chunk> <chunk>
<name>brake-left</name> <name>brake-left</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/gear/brake-left</node> <node>/controls/gear/brake-left</node>
</chunk> </chunk>
<chunk> <chunk>
<name>brake-right</name> <name>brake-right</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/gear/brake-right</node> <node>/controls/gear/brake-right</node>
</chunk> </chunk>
<chunk> <chunk>
<name>brake-parking</name> <name>brake-parking</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/gear/brake-parking</node> <node>/controls/gear/brake-parking</node>
</chunk> </chunk>
@ -197,9 +219,45 @@
<chunk> <chunk>
<name>gear-down</name> <name>gear-down</name>
<type>float</type> <type>float</type>
<format>%f</format>
<node>/controls/gear/gear-down</node> <node>/controls/gear/gear-down</node>
</chunk> </chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[1]/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[2]/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[3]/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[4]/position-norm</node>
</chunk>
<!-- Hydraulics --> <!-- Hydraulics -->
<chunk> <chunk>
<name>engine-pump</name> <name>engine-pump</name>
@ -330,6 +388,153 @@
<node>/orientation/side-slip-deg</node> <node>/orientation/side-slip-deg</node>
</chunk> </chunk>
<!-- Velocities -->
<chunk>
<name>airspeed-kt</name>
<type>float</type>
<format>%f</format>
<node>/velocities/airspeed-kt</node>
</chunk>
<chunk>
<name>glideslope</name>
<type>float</type>
<format>%f</format>
<node>/velocities/glideslope</node>
</chunk>
<chunk>
<name>mach</name>
<type>float</type>
<format>%f</format>
<node>/velocities/mach</node>
</chunk>
<chunk>
<name>speed-down-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/speed-down-fps</node>
</chunk>
<chunk>
<name>speed-east-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/speed-east-fps</node>
</chunk>
<chunk>
<name>speed-north-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/speed-north-fps</node>
</chunk>
<chunk>
<name>uBody-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/uBody-fps</node>
</chunk>
<chunk>
<name>vBody-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/vBody-fps</node>
</chunk>
<chunk>
<name>wBody-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/wBody-fps</node>
</chunk>
<chunk>
<name>vertical-speed-fps</name>
<type>float</type>
<format>%f</format>
<node>/velocities/vertical-speed-fps</node>
</chunk>
<!-- Accelerations -->
<chunk>
<name>nlf</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/nlf</node>
</chunk>
<chunk>
<name>ned-down-accel-fps_sec</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/ned/down-accel-fps_sec</node>
</chunk>
<chunk>
<name>ned-east-accel-fps_sec</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/ned/east-accel-fps_sec</node>
</chunk>
<chunk>
<name>ned-north-accel-fps_sec</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/ned/north-accel-fps_sec</node>
</chunk>
<chunk>
<name>pilot-x-accel-fps_sec</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/pilot/x-accel-fps_sec</node>
</chunk>
<chunk>
<name>pilot-y-accel-fps_sec</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/pilot/y-accel-fps_sec</node>
</chunk>
<chunk>
<name>pilot-z-accel-fps_sec</name>
<type>float</type>
<format>%f</format>
<node>/accelerations/pilot/z-accel-fps_sec</node>
</chunk>
<!-- Surface Positions -->
<chunk>
<name>elevator-pos-norm</name>
<type>float</type>
<format>%f</format>
<node>/surface-positions/elevator-pos-norm[0]</node>
</chunk>
<chunk>
<name>flap-pos-norm</name>
<type>float</type>
<format>%f</format>
<node>/surface-positions/flap-pos-norm[0]</node>
</chunk>
<chunk>
<name>left-aileron-pos-norm</name>
<type>float</type>
<format>%f</format>
<node>/surface-positions/left-aileron-pos-norm[0]</node>
</chunk>
<chunk>
<name>right-aileron-pos-norm</name>
<type>float</type>
<format>%f</format>
<node>/surface-positions/right-aileron-pos-norm[0]</node>
</chunk>
<chunk>
<name>rudder-pos-norm</name>
<type>float</type>
<format>%f</format>
<node>/surface-positions/rudder-pos-norm[0]</node>
</chunk>
</output> </output>
<input> <input>
@ -514,6 +719,41 @@
<node>/controls/gear/gear-down</node> <node>/controls/gear/gear-down</node>
</chunk> </chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[1]/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[2]/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[3]/position-norm</node>
</chunk>
<chunk>
<name>gear-position</name>
<type>float</type>
<format>%f</format>
<node>/gear/gear[4]/position-norm</node>
</chunk>
<!-- Hydraulics --> <!-- Hydraulics -->
<chunk> <chunk>
<name>engine-pump</name> <name>engine-pump</name>
@ -637,6 +877,131 @@
<node>/orientation/side-slip-deg</node> <node>/orientation/side-slip-deg</node>
</chunk> </chunk>
<!-- Velocities -->
<chunk>
<name>airspeed-kt</name>
<type>float</type>
<node>/velocities/airspeed-kt</node>
</chunk>
<chunk>
<name>glideslope</name>
<type>float</type>
<node>/velocities/glideslope</node>
</chunk>
<chunk>
<name>mach</name>
<type>float</type>
<node>/velocities/mach</node>
</chunk>
<chunk>
<name>speed-down-fps</name>
<type>float</type>
<node>/velocities/speed-down-fps</node>
</chunk>
<chunk>
<name>speed-east-fps</name>
<type>float</type>
<node>/velocities/speed-east-fps</node>
</chunk>
<chunk>
<name>speed-north-fps</name>
<type>float</type>
<node>/velocities/speed-north-fps</node>
</chunk>
<chunk>
<name>uBody-fps</name>
<type>float</type>
<node>/velocities/uBody-fps</node>
</chunk>
<chunk>
<name>vBody-fps</name>
<type>float</type>
<node>/velocities/vBody-fps</node>
</chunk>
<chunk>
<name>wBody-fps</name>
<type>float</type>
<node>/velocities/wBody-fps</node>
</chunk>
<chunk>
<name>vertical-speed-fps</name>
<type>float</type>
<node>/velocities/vertical-speed-fps</node>
</chunk>
<!-- Accelerations -->
<chunk>
<name>nlf</name>
<type>float</type>
<node>/accelerations/nlf</node>
</chunk>
<chunk>
<name>ned-down-accel-fps_sec</name>
<type>float</type>
<node>/accelerations/ned/down-accel-fps_sec</node>
</chunk>
<chunk>
<name>ned-east-accel-fps_sec</name>
<type>float</type>
<node>/accelerations/ned/east-accel-fps_sec</node>
</chunk>
<chunk>
<name>ned-north-accel-fps_sec</name>
<type>float</type>
<node>/accelerations/ned/north-accel-fps_sec</node>
</chunk>
<chunk>
<name>pilot-x-accel-fps_sec</name>
<type>float</type>
<node>/accelerations/pilot/x-accel-fps_sec</node>
</chunk>
<chunk>
<name>pilot-y-accel-fps_sec</name>
<type>float</type>
<node>/accelerations/pilot/y-accel-fps_sec</node>
</chunk>
<chunk>
<name>pilot-z-accel-fps_sec</name>
<type>float</type>
<node>/accelerations/pilot/z-accel-fps_sec</node>
</chunk>
<!-- Surface Positions -->
<chunk>
<name>elevator-pos-norm</name>
<type>float</type>
<node>/surface-positions/elevator-pos-norm[0]</node>
</chunk>
<chunk>
<name>flap-pos-norm</name>
<type>float</type>
<node>/surface-positions/flap-pos-norm[0]</node>
</chunk>
<chunk>
<name>left-aileron-pos-norm</name>
<type>float</type>
<node>/surface-positions/left-aileron-pos-norm[0]</node>
</chunk>
<chunk>
<name>right-aileron-pos-norm</name>
<type>float</type>
<node>/surface-positions/right-aileron-pos-norm[0]</node>
</chunk>
<chunk>
<name>rudder-pos-norm</name>
<type>float</type>
<node>/surface-positions/rudder-pos-norm[0]</node>
</chunk>
</input> </input>
</generic> </generic>