Commit fbc93429 authored by Pedro Henrique Kopper's avatar Pedro Henrique Kopper
Browse files

Corrigir escala do sensor de pressão

parent 78b99655
...@@ -21,7 +21,7 @@ class SACADA(object): ...@@ -21,7 +21,7 @@ class SACADA(object):
if channel["id"] == "PWR": if channel["id"] == "PWR":
return self.s.readVoltage("A3") * self.s.readVoltage("A4") return self.s.readVoltage("A3") * self.s.readVoltage("A4")
if channel["id"] == "A3": if channel["id"] == "A3":
return self.s.readVoltage("A3") * (250.0/10.0) return self.s.readVoltage("A3") * (400.0/10.0) + 3.0
return self.s.readVoltage(channel["id"]) return self.s.readVoltage(channel["id"])
def readAll(self): def readAll(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment