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

Tries to implement VMN sign within mb_2023 and mb_2024

Showing with 1 addition and 0 deletions
+1 -0
......@@ -143,4 +143,5 @@ class Rx(Rx_mb_2023):
self.exec_logger.event(f'{self.board_name}\trx_voltage\tbegin\t{datetime.datetime.utcnow()}')
u = (AnalogIn(self._ads_voltage, ads.P0).voltage * self._coef_p2 * 1000. - self._vmn_hardware_offset) / self._dg411_gain - self._bias # TODO: check how to handle bias and _vmn_hardware_offset
self.exec_logger.event(f'{self.board_name}\trx_voltage\tend\t{datetime.datetime.utcnow()}')
print(f'voltage: {u}')
return u
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