Skip to content

Commit

Permalink
Correction of calculation of B3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mausy5043 committed Jan 17, 2016
1 parent 164ced9 commit e113fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbio/libraries/BMP183/BMP183.py
Expand Up @@ -105,7 +105,7 @@ def getPressure(self, oversampling=OVERSAMPLE_0):
x1 = (self.cal_B2 * (b6*b6 / 4096)) / 2048
x2 = self.cal_AC2 * b6 / 2048
x3 = x1+x2
b3 = ((self.cal_AC1*4+x3) << oversampling + 2) / 4
b3 = (((self.cal_AC1*4+x3) << oversampling) + 2) / 4
x1 = self.cal_AC3 * b6 / 8192
x2 = (self.cal_B1 * (b6*b6 / 4096)) / 65536
x3 = ((x1 + x2) + 2) / 4
Expand Down

0 comments on commit e113fa2

Please sign in to comment.