CVS: data/Aircraft/Piper-PA-18/Nasal light.nas, NONE, 1.1 views.xml, 1.1, 1.2

Emmanuel Baranger <[email protected]> Wed, 14 Apr 2010 17:44:55 -0500
Newsgroups gmane.games.flightgear.cvc
Message-ID <[email protected]>
Update of /var/cvs/FlightGear-0.9/data/Aircraft/Piper-PA-18/Nasal
In directory baron.flightgear.org:/tmp/cvs-serv17238/Nasal

Modified Files:
	views.xml 
Added Files:
	light.nas 
Log Message:
- little update 

--- NEW FILE "light.nas" ---
var sbc1 = aircraft.light.new( "/sim/model/lights/sbc1", [0.5, 0.3] );
sbc1.interval = 0.1;
sbc1.switch( 1 );

var sbc2 = aircraft.light.new( "/sim/model/lights/sbc2", [0.2, 0.3], "/sim/model/lights/sbc1/state" );
sbc2.interval = 0;
sbc2.switch( 1 );

setlistener( "/sim/model/lights/sbc2/state", func(n) {
  var bsbc1 = sbc1.stateN.getValue();
  var bsbc2 = n.getBoolValue();
  var b = 0;
  if( bsbc1 and bsbc2 and getprop( "/controls/lighting/beacon") ) {
    b = 1;
  } else {
    b = 0;
  }
  setprop( "/sim/model/lights/beacon/enabled", b );

  if( bsbc1 and !bsbc2 and getprop( "/controls/lighting/strobe" ) ) {
    b = 1;
  } else {
    b = 0;
  }
  setprop( "/sim/model/lights/strobe/enabled", b );
});

var beacon = aircraft.light.new( "/sim/model/lights/beacon", [0.05, 0.05] );
beacon.interval = 0;

var strobe = aircraft.light.new( "/sim/model/lights/strobe", [0.05, 0.05, 0.05, 1] );
strobe.interval = 0;

setprop( "/instrumentation/nav[0]/ident", 0 );
setprop( "/instrumentation/nav[1]/ident", 0 );


Index: views.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/Piper-PA-18/Nasal/views.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- views.xml	20 Mar 2010 21:28:15 -0000	1.1
+++ views.xml	14 Apr 2010 22:44:53 -0000	1.2
@@ -3,7 +3,7 @@
 
 <PropertyList>
 
-  <chase-distance-m type="double" archive="y">-20.0</chase-distance-m>
+  <chase-distance-m type="double" archive="y">-15.0</chase-distance-m>
 
   <view n="100">
     <name>Passanger Seat View</name>
@@ -43,8 +43,8 @@
        <x-offset-m archive="y">  0.000 </x-offset-m>	<!-- Right -->
        <y-offset-m archive="y">  0.440 </y-offset-m>	<!-- Up    -->
        <z-offset-m archive="y"> -1.688 </z-offset-m>	<!-- Back  -->
-       <pitch-offset-deg> -10 </pitch-offset-deg>
-      <default-field-of-view-deg> 60 </default-field-of-view-deg>
+       <pitch-offset-deg> -15 </pitch-offset-deg>
+      <default-field-of-view-deg> 70 </default-field-of-view-deg>
     </config>
   </view>
 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev