Exemplo n.º 1
0
    def test_03(self):

        # Truth values from NASA RP 1046

        Value = SA.press2alt(2511.01, alt_units='m', press_units='pa')
        Truth = 25000
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 2
0
    def test_02(self):

        # Truth values from NASA RP 1046

        Value = SA.press2alt(254.139, press_units='psf')
        Truth = 49000
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 3
0
    def test_01(self):

        # Truth values from NASA RP 1046

        Value = SA.press2alt(24.8959)
        Truth = 5000
        self.assertLessEqual(RE(Value, Truth), 2e-5)
Exemplo n.º 4
0
    def test_07(self):

        # truth value calculated from program at:
        # http://www.sworld.com.au/steven/space/atmosphere/

        Value = SA.press2alt(0.75009, press_units='pa', alt_units='m')
        Truth = 80956
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 5
0
    def test_04(self):

        # test units in other order
        # truth value calculated from program at:
        # http://www.sworld.com.au/steven/space/atmosphere/

        Value = SA.press2alt(287.14, press_units='pa', alt_units='m')
        Truth = 39750
        self.assertLessEqual(RE(Value, Truth), 1e-5)
Exemplo n.º 6
0
 def MSL_Altitude(self, pressure_alt):
     MSL_atl = pressure_alt - std_atm.press2alt(
         self.alt_setting.getAltimeter_Setting())
     return MSL_atl
Exemplo n.º 7
0
 def MSL_Altitude(self, pressure_alt):
     MSL_atl = pressure_alt - std_atm.press2alt(
                                 self.alt_setting.getAltimeter_Setting())
     return MSL_atl