Commit 515cddb7 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes rx voltage units error in message (changing from V to mV)

Showing with 1 addition and 1 deletion
+1 -1
...@@ -234,5 +234,5 @@ class Rx(RxAbstract): ...@@ -234,5 +234,5 @@ class Rx(RxAbstract):
u0 = AnalogIn(self._ads_voltage, ads.P0).voltage * 1000. u0 = AnalogIn(self._ads_voltage, ads.P0).voltage * 1000.
u2 = AnalogIn(self._ads_voltage, ads.P2).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 u = np.max([u0,u2]) * (np.heaviside(u0-u2, 1.) * 2 - 1.) # gets the max between u0 & u2 and set the sign
self.exec_logger.debug(f'Reading voltages {u0} V and {u2} V on RX. Returning {u} V') self.exec_logger.debug(f'Reading voltages {u0} mV and {u2} mV on RX. Returning {u} mV')
return u return u
\ No newline at end of file
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