Skip to content

Commit

Permalink
Test the terrain radius rather than the vehicle's.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Jul 25, 2021
1 parent 0e4ef2a commit c685645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestPlanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def test_moon(self):
self.fdm['ic/lat-geod-deg'] = 0.0
self.fdm.run_ic()

self.assertAlmostEqual((self.fdm['position/radius-to-vehicle-ft']-0.2)*0.3048/1738100, 1.0)
self.assertAlmostEqual(self.fdm['metrics/terrain-radius']*0.3048/1738100, 1.0)
self.assertAlmostEqual(self.fdm['accelerations/gravity-ft_sec2']*0.3048, 1.62, delta=3e-3)

self.fdm['ic/lat-geod-deg'] = 90.0
self.fdm.run_ic()

self.assertAlmostEqual((self.fdm['position/radius-to-vehicle-ft']-0.2)*0.3048/1736000, 1.0)
self.assertAlmostEqual(self.fdm['metrics/terrain-radius']*0.3048/1736000, 1.0)


RunTest(TestPlanet)

0 comments on commit c685645

Please sign in to comment.