Commit dd687e17 authored by Clement Remi's avatar Clement Remi
Browse files

correction of ads continious mode inversion between current and voltage

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -995,7 +995,7 @@ class OhmPi(object): ...@@ -995,7 +995,7 @@ class OhmPi(object):
if autogain: # select gain computed on first half cycle if autogain: # select gain computed on first half cycle
self.ads_voltage = ads.ADS1115(self.i2c, gain=np.min(gain_voltage), data_rate=860, self.ads_voltage = ads.ADS1115(self.i2c, gain=np.min(gain_voltage), data_rate=860,
address=self.ads_voltage_address) address=self.ads_voltage_address)
self.ads_current.mode= Mode.CONTINUOUS self.ads_voltage.mode= Mode.CONTINUOUS
self.exec_logger.debug(f'Stack {n} {self.pin0.value} {self.pin1.value}') self.exec_logger.debug(f'Stack {n} {self.pin0.value} {self.pin1.value}')
if self.board_version == 'mb.2023.0.0': if self.board_version == 'mb.2023.0.0':
self.pin6.value = True # IHM current injection led on self.pin6.value = True # IHM current injection led on
......
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