Here's a poor-man's aircraft selector.  It's a bash script that calls fgfs 
with a string of command line parameters.  I have three scripts I'm using 
now, called 737, t38 and ov10.  To fly the t38 I type t38 at the shell 
prompt:

#!/bin/bash

cmdline="
--fg-root=/usr/local/FlightGear
--aircraft=T38
--airport-id=KSFO
--geometry=1024x768
--prop:/consumables/fuel/tank[0]/level-gal_us=290
--prop:/consumables/fuel/tank[1]/level-gal_us=290
--prop:/engines/engine[0]/running=true
--prop:/engines/engine[1]/running=true
--prop:/radios/marker-beacon/audio-btn[0]=false
--prop:/radios/nav/frequencies/selected-mhz[0]=111.7
--prop:/radios/nav/radials/selected-deg[0]=283.0
--prop:/radios/nav[1]/frequencies/selected-mhz[0]=115.8
--prop:/radios/dme/switch-position=1
--visibility-miles=4.0
--enable-sound
--disable-clouds
--disable-hud
--start-date-gmt=2003:01:20:16:00:00
"

fgfs $cmdline
exit 0



I assume all the values defined by preferences.xml are also definable by 
command line parameters of the --prop: variety?  I'll experiment with it.

Dave Culp

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to