Commit 4582a9bb authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Attemps to use the sampling_rate in _vab_pulse

No related merge requests found
Showing with 8 additions and 3 deletions
+8 -3
...@@ -73,9 +73,14 @@ class OhmPiHardware: ...@@ -73,9 +73,14 @@ class OhmPiHardware:
# set gains automatically # set gains automatically
self.tx.adc_gain_auto() self.tx.adc_gain_auto()
self.rx.adc_gain_auto() self.rx.adc_gain_auto()
iab = self.tx.current # measure current # iab = self.tx.current # measure current
vmn = self.rx.voltage # vmn = self.rx.voltage
return vmn, iab data = readings.start()
injection.start()
readings.join()
injection.join()
print(data)
return data
def _compute_tx_volt(self, best_tx_injtime=0.1, strategy='vmax', tx_volt=5, def _compute_tx_volt(self, best_tx_injtime=0.1, strategy='vmax', tx_volt=5,
vab_max=voltage_max, vmn_min=voltage_min): vab_max=voltage_max, vmn_min=voltage_min):
......
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