#NEWLINE# def readPressure( self ) : #NEWLINE# #INDENT# UT = 0 #NEWLINE# UP = 0 #NEWLINE# B3 = 0 #NEWLINE# B5 = 0 #NEWLINE# B6 = 0 #NEWLINE# X1 = 0 #NEWLINE# X2 = 0 #NEWLINE# X3 = 0 #NEWLINE# p = 0 #NEWLINE# B4 = 0 #NEWLINE# B7 = 0 #NEWLINE# UT = self . readRawTemp ( ) #NEWLINE# UP = self . readRawPressure ( ) #NEWLINE# X1 = ( ( ( UT - self . _cal_AC6 ) * self . _cal_AC5 ) >> 15 ) #NEWLINE# X2 = ( ( self . _cal_MC << 11 ) / ( self + self . _cal_MD ) ) #NEWLINE# B5 = ( X1 + X2 ) #NEWLINE# B6 = ( B5 - 4000 ) #NEWLINE# X1 = ( ( ( self . _cal_B2 * ( B6 * B6 ) ) >> 12 ) >> 11 ) #NEWLINE# X2 = ( ( self . _cal_AC2 * B6 ) >> 11 ) #NEWLINE# X3 = ( X1 + X2 ) #NEWLINE# B3 = ( ( ( ( ( self . _cal_AC1 * 4 ) + X3 ) << self . mode ) + 2 ) / 4 ) #NEWLINE# X1 = ( ( self . _cal_AC3 * B6 ) >> 13 ) #NEWLINE# X2 = ( ( self . _cal_B1 * ( ( B6 * B6 ) >> 12 ) ) >> 16 ) #NEWLINE# X3 = ( ( ( X1 + X2 ) + 2 ) >> 2 ) #NEWLINE# B4 = ( ( self . _cal_AC4 * ( X3 + 32768 ) ) >> 15 ) #NEWLINE# B7 = ( ( UP - B3 ) * ( 50000 >> self . mode ) ) #NEWLINE# if ( B7 < 2147483648 ) : #NEWLINE# #INDENT# p = ( ( B7 * 2 ) / B4 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# p = ( ( B7 / B4 ) * 2 ) #NEWLINE# #UNINDENT# X1 = ( ( p >> 8 ) * ( p >> 8 ) ) #NEWLINE# X1 = ( ( X1 * 3038 ) >> 16 ) #NEWLINE# X2 = ( ( ( - 7375 ) * p ) >> 16 ) #NEWLINE# p = ( p + ( ( ( X1 + X2 ) + 3791 ) >> 4 ) ) #NEWLINE# return p