Commit d04f9306 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes r_shunt in Tx.current

Showing with 1 addition and 1 deletion
+1 -1
...@@ -125,7 +125,7 @@ class Tx(TxAbstract): ...@@ -125,7 +125,7 @@ class Tx(TxAbstract):
def current(self): def current(self):
""" Gets the current IAB in Amps """ Gets the current IAB in Amps
""" """
return AnalogIn(self._ads_current, ads.P0).voltage * 1000. / (50 * TX_CONFIG['R_shunt']) # noqa measure current return AnalogIn(self._ads_current, ads.P0).voltage * 1000. / (50 * TX_CONFIG['r_shunt']) # noqa measure current
@ current.setter @ current.setter
def current(self, value): def current(self, value):
......
Supports Markdown
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