From: Bertrand <bco...@us...> - 2016-07-03 17:18:44
|
Update of /cvsroot/jsbsim/JSBSim/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9585/tests Modified Files: TestICOverride.py Log Message: Check that when the geodetic latitude is set, a later modification of the altitude is not modifying the geodetic latitude. Index: TestICOverride.py =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/tests/TestICOverride.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** TestICOverride.py 30 Jan 2016 18:50:24 -0000 1.5 --- TestICOverride.py 3 Jul 2016 17:18:41 -0000 1.6 *************** *** 59,63 **** # The modified script is then saved with the named 'c1724_0.xml' tree = et.parse(script_path) ! run_tag = tree.getroot().find("./run") property = et.SubElement(run_tag, 'property') property.text = 'ic/vt-kts' --- 59,63 ---- # The modified script is then saved with the named 'c1724_0.xml' tree = et.parse(script_path) ! run_tag = tree.getroot().find("run") property = et.SubElement(run_tag, 'property') property.text = 'ic/vt-kts' *************** *** 90,92 **** --- 90,102 ---- delta=1E-6) + def test_asl_override_vs_geod_lat(self): + fdm = CreateFDM(self.sandbox) + fdm.load_model('c310') + fdm.load_ic(self.sandbox.path_to_jsbsim_file('aircraft', 'c310', + 'ellington.xml'), False) + + geod_lat = fdm['ic/lat-geod-deg'] + fdm['ic/h-sl-ft'] = 35000. + self.assertAlmostEqual(fdm['ic/lat-geod-deg'], geod_lat) + RunTest(TestICOverride) |