build(boards): xpython板卡执行 build:prod

This commit is contained in:
王立帮
2025-03-28 10:10:42 +08:00
parent 78c55f9965
commit 7d7ac495bb
28 changed files with 70 additions and 67 deletions

View File

@@ -69,7 +69,6 @@ class MS5611:
P = (D1 * SENS / 2 ** 21 - OFF) / 2 ** 15
H = (1 - (P / 101325) ** (1 / 5.255)) * 44330
return round(P / 100, 2), round(TEMP / 100, 2), round(H, 2)
def pressure(self):
@@ -78,5 +77,5 @@ class MS5611:
def temperature(self):
return self.getdata[1]
def altitude(self):
return self.getdata[2]
def altitude(self, reference=1013.25):
return (pow((reference / 33.8639), 0.190255) - pow((self.getdata[0] / 33.8639), 0.190255)) / 0.000013125214