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

Attempts to fix property issue in TxAbstract init

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -27,7 +27,7 @@ class TxAbstract(ABC): ...@@ -27,7 +27,7 @@ class TxAbstract(ABC):
#self._polarity = polarity #self._polarity = polarity
self._inj_time = None self._inj_time = None
self._dps_state = 'off' self._dps_state = 'off'
self.adc_gain = 1. self._adc_gain = 1.
self.polarity = polarity self.polarity = polarity
self.inj_time = inj_time self.inj_time = inj_time
self.exec_logger.debug(f'{self.board_name} TX initialization') self.exec_logger.debug(f'{self.board_name} TX initialization')
......
...@@ -73,7 +73,7 @@ class Tx(TxAbstract): ...@@ -73,7 +73,7 @@ class Tx(TxAbstract):
self.mcp_board = MCP23008(self.controller.bus, address=TX_CONFIG['mcp_board_address']) self.mcp_board = MCP23008(self.controller.bus, address=TX_CONFIG['mcp_board_address'])
# ADS1115 for current measurement (AB) # ADS1115 for current measurement (AB)
self._adc_gain = 2/3 self.adc_gain = 2/3
self._ads_current_address = 0x48 self._ads_current_address = 0x48
self._ads_current = ads.ADS1115(self.controller.bus, gain=self.adc_gain, data_rate=860, self._ads_current = ads.ADS1115(self.controller.bus, gain=self.adc_gain, data_rate=860,
address=self._ads_current_address) address=self._ads_current_address)
......
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