diff --git a/.gitignore b/.gitignore index e1648cde4e67f313e8f6dee4fee99f3a90f0c808..89ac8b0496123d0ac224589038cb20061a27faf1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ .idea/* data/* **/.ipynb_notebooks/** -data.zip +*.zip __pycache__ Ohmpi_4elec_mqtt.py ohmpy/* diff --git a/hardware_components/ohmpi_card_3_15.py b/hardware_components/ohmpi_card_3_15.py index 95b20f83ad4507e401ba1a51dc662e4e35f8835b..c1720063c66cc1452a632047cdbe843cd8ccf6fc 100644 --- a/hardware_components/ohmpi_card_3_15.py +++ b/hardware_components/ohmpi_card_3_15.py @@ -226,6 +226,7 @@ class Rx(RxAbstract): def voltage(self): """ Gets the voltage VMN in Volts """ + print(f'Voltage ads: {self._ads_voltage_address}, {ads.P0}') u0 = AnalogIn(self._ads_voltage, ads.P0).voltage * 1000. u2 = AnalogIn(self._ads_voltage, ads.P2).voltage * 1000. u = np.max([u0,u2]) * (np.heaviside(u0-u2, 1.) * 2 - 1.) # gets the max between u0 & u2 and set the sign diff --git a/mb.2024.0.0/mb.2024.0.0-backups/mb.2024.0.0-2023-02-21_135605.zip b/mb.2024.0.0/mb.2024.0.0-backups/mb.2024.0.0-2023-02-21_135605.zip deleted file mode 100644 index 72d34948bad6f4b1ecdf415444b7996b6db41822..0000000000000000000000000000000000000000 Binary files a/mb.2024.0.0/mb.2024.0.0-backups/mb.2024.0.0-2023-02-21_135605.zip and /dev/null differ