I wrote:
> David Megginson wrote:
> > Changes for gear and flaps are still abrupt, but I have great faith
> > that I'll be able to get the normalized gear and flap positions from
> > YASim very, very soon now.
>
> Gear could be trivially exported. Where do you want it? How about
> /control-positions/gear[n]/extension-fraction?
OK, this should work. I'm not at home right now, so I can't test it
to check it in, but I can't see any issues. So here's the
modification, as a patch (hah!). Let me know if it works, and I'll
check it in. Or you can check it in yourself. Or I can try it at
home and check it in. Whatever.
Feel free to redirect the property to wherever you'd prefer to see it.
Andy
===================================================================
RCS file: /var/cvs/FlightGear-0.7/FlightGear/src/FDM/YASim/FGFDM.cpp,v
retrieving revision 1.7
diff -u -r1.7 FGFDM.cpp
--- FGFDM.cpp 20 Feb 2002 06:08:33 -0000 1.7
+++ FGFDM.cpp 27 Feb 2002 23:28:08 -0000
@@ -292,6 +292,11 @@
fgSetFloat(buf, CM2GALS*_airplane.getFuel(i)/fuelDensity);
}
+ for(i=0; i<_airplane.numGear(); i++) {
+ sprintf(buf, "/control-positions/gear[%d]/extension-fraction", i);
+ fgSetFloat(buf, _airplane.getGear(i)->getExtension());
+ }
+
for(i=0; i<_thrusters.size(); i++) {
EngRec* er = (EngRec*)_thrusters.get(i);
Thruster* t = er->eng;
--
Andrew J. Ross NextBus Information Systems
Senior Software Engineer Emeryville, CA
[EMAIL PROTECTED] http://www.nextbus.com
"Men go crazy in conflagrations. They only get better one by one."
- Sting (misquoted)
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel