Hi,

AndersG, Jester (Csaba Halász) and I discovered this morning that the
FlightGear version of JSBSim doesn't allow thrusters to be oriented.
This bug was fixed in JSBSim stand alone, but that fix has not yet been
ported to FGFS.

The attach patch will:
Fix FGThruster.cpp orient units so thrusters may be rotated.


Thanks,

Ron


Index: FGThruster.cpp
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/JSBSim/models/propulsion/FGThruster.cpp,v
retrieving revision 1.2
diff -u -r1.2 FGThruster.cpp
--- FGThruster.cpp	15 Jan 2007 12:48:56 -0000	1.2
+++ FGThruster.cpp	19 Apr 2007 00:25:32 -0000
@@ -73,7 +73,7 @@
   else          cerr << "No thruster location found." << endl;
 
   element = thruster_element->FindElement("orient");
-  if (element)  orientation = element->FindElementTripletConvertTo("IN");
+  if (element)  orientation = element->FindElementTripletConvertTo("RAD");
   else          cerr << "No thruster orientation found." << endl;
 
   SetLocation(location);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to