Hi, here's a b1900d patch: - actually run the update callbacks every frame, not just once - fix the GPWS buttons lighting
Note that if I call registerTimer() instead of settimer(), the callback is not run. Nasal bug? -- Jean-Yves Lefort [EMAIL PROTECTED] http://lefort.be.eu.org/
Index: b1900d-set.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/b1900d/b1900d-set.xml,v
retrieving revision 1.16
diff -u -r1.16 b1900d-set.xml
--- b1900d-set.xml 10 Nov 2006 08:16:06 -0000 1.16
+++ b1900d-set.xml 27 Jan 2007 16:26:33 -0000
@@ -23,7 +23,7 @@
<red
alias="/sim/model/b1900d/material/instruments/emission/red"/>
<green
alias="/sim/model/b1900d/material/instruments/emission/green"/>
<blue
alias="/sim/model/b1900d/material/instruments/emission/blue"/>
- <factor alias="/sim/model/b1900d/material/instruments/factor"/>
+ <factor alias="/controls/lighting/instruments-norm"/>
</emission>
</assemblies>
</mk-viii>
Index: Nasal/b1900d-electrical.nas
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/data/Aircraft/b1900d/Nasal/b1900d-electrical.nas,v
retrieving revision 1.2
diff -u -r1.2 b1900d-electrical.nas
--- Nasal/b1900d-electrical.nas 10 Nov 2006 08:16:09 -0000 1.2
+++ Nasal/b1900d-electrical.nas 27 Jan 2007 16:26:34 -0000
@@ -113,6 +113,7 @@
last_time = time;
update_virtual_bus( dt );
}
+settimer(update_electrical, 0);
}
update_virtual_bus = func( dt ) {
Index: Nasal/systems.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/b1900d/Nasal/systems.nas,v
retrieving revision 1.4
diff -u -r1.4 systems.nas
--- Nasal/systems.nas 25 Jan 2007 06:25:42 -0000 1.4
+++ Nasal/systems.nas 27 Jan 2007 16:26:34 -0000
@@ -102,6 +102,7 @@
setprop("/sim/current-view/y-offset-m",eyepoint);
}
}
+settimer(update_systems, 0);
}
####################################
pgpb58gt8Wdqx.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

