From d04f9306cf91101c6ad07f99bae12043ea6cf4b8 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Sat, 15 Apr 2023 13:24:10 +0200
Subject: [PATCH] Fixes r_shunt in Tx.current

---
 hardware/ohmpi_card_3_15.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hardware/ohmpi_card_3_15.py b/hardware/ohmpi_card_3_15.py
index f5fc89be..064a99f7 100644
--- a/hardware/ohmpi_card_3_15.py
+++ b/hardware/ohmpi_card_3_15.py
@@ -125,7 +125,7 @@ class Tx(TxAbstract):
     def current(self):
         """ 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
     def current(self, value):
-- 
GitLab