]> git.mxchange.org Git - flightgear.git/commitdiff
Csaba Halasz: Pass file name to xml parser for error reporting from JSBSim.
authorehofman <ehofman>
Sun, 29 Nov 2009 09:34:01 +0000 (09:34 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 29 Nov 2009 14:54:22 +0000 (15:54 +0100)
src/FDM/JSBSim/input_output/FGXMLFileRead.h
src/FDM/JSBSim/models/FGLGear.h

index 472a79adc36377d27f3eb9b6401d90422c753872..204c4013851ba52cd56130e2bc9fd79513918152 100755 (executable)
@@ -74,7 +74,7 @@ protected:
       return 0L;
     }
 
-    readXML(infile, file_parser);
+    readXML(infile, file_parser, XML_filename);
     document = file_parser.GetDocument();
     infile.close();
     
index dfba5bbf0bff2d7d40a47a2bdac852744d042244..9b86b68794d174fb5565ca324d979b4caaf85d7a 100644 (file)
@@ -162,12 +162,17 @@ CLASS DOCUMENTATION
                 <y> {number} </y>
                 <z> {number} </z>
             </location>
+            <orientation unit="{RAD | DEG}">
+                <pitch> {number} </pitch>
+                <roll> {number} </roll>
+                <yaw> {number} </yaw>
+            </orientation>
             <static_friction> {number} </static_friction>
             <dynamic_friction> {number} </dynamic_friction>
             <rolling_friction> {number} </rolling_friction>
             <spring_coeff unit="{LBS/FT | N/M}"> {number} </spring_coeff>
-            <damping_coeff unit="{LBS/FT/SEC | N/M/SEC}"> {number} </damping_coeff>
-            <damping_coeff_rebound unit="{LBS/FT/SEC | N/M/SEC}"> {number} </damping_coeff_rebound>
+            <damping_coeff [type="SQUARE"] unit="{LBS/FT/SEC | N/M/SEC}"> {number} </damping_coeff>
+            <damping_coeff_rebound [type="SQUARE"] unit="{LBS/FT/SEC | N/M/SEC}"> {number} </damping_coeff_rebound>
             <max_steer unit="DEG"> {number | 0 | 360} </max_steer>
             <brake_group> {NONE | LEFT | RIGHT | CENTER | NOSE | TAIL} </brake_group>
             <retractable>{0 | 1}</retractable>