1
0
Fork 0

Csaba Halasz: Pass file name to xml parser for error reporting from JSBSim.

This commit is contained in:
ehofman 2009-11-29 09:34:01 +00:00 committed by Tim Moore
parent 7af1f496e8
commit 1e744a2582
2 changed files with 8 additions and 3 deletions

View file

@ -74,7 +74,7 @@ protected:
return 0L;
}
readXML(infile, file_parser);
readXML(infile, file_parser, XML_filename);
document = file_parser.GetDocument();
infile.close();

View 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>