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

Switch back to CONTINUOUS Mode

Showing with 3 additions and 3 deletions
+3 -3
...@@ -88,14 +88,14 @@ class Tx(TxAbstract): ...@@ -88,14 +88,14 @@ class Tx(TxAbstract):
self._ads_current_address = 0x48 self._ads_current_address = 0x48
self._ads_current = ads.ADS1115(self.ctl.bus, gain=self.adc_gain, data_rate=860, self._ads_current = ads.ADS1115(self.ctl.bus, gain=self.adc_gain, data_rate=860,
address=self._ads_current_address) address=self._ads_current_address)
self._ads_current.mode = Mode.SINGLE self._ads_current.mode = Mode.CONTINUOUS
# Relays for pulse polarity # Relays for pulse polarity
self.pin0 = self.mcp_board.get_pin(0) self.pin0 = self.mcp_board.get_pin(0)
self.pin0.direction = Direction.OUTPUT self.pin0.direction = Direction.OUTPUT
self.pin1 = self.mcp_board.get_pin(1) self.pin1 = self.mcp_board.get_pin(1)
self.pin1.direction = Direction.OUTPUT self.pin1.direction = Direction.OUTPUT
self.polarity = 0 # self.polarity = 0
self.adc_gain = 2 / 3 self.adc_gain = 2 / 3
...@@ -200,7 +200,7 @@ class Rx(RxAbstract): ...@@ -200,7 +200,7 @@ class Rx(RxAbstract):
self._ads_voltage_address = 0x49 self._ads_voltage_address = 0x49
self._adc_gain = 2/3 self._adc_gain = 2/3
self._ads_voltage = ads.ADS1115(self.ctl.bus, gain=self._adc_gain, data_rate=860, address=self._ads_voltage_address) self._ads_voltage = ads.ADS1115(self.ctl.bus, gain=self._adc_gain, data_rate=860, address=self._ads_voltage_address)
self._ads_voltage.mode = Mode.SINGLE self._ads_voltage.mode = Mode.CONTINUOUS
self._sampling_rate = kwargs.pop('sampling_rate', sampling_rate) self._sampling_rate = kwargs.pop('sampling_rate', sampling_rate)
@property @property
......
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