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

Updates config

Showing with 5 additions and 5 deletions
+5 -5
...@@ -356,7 +356,7 @@ class OhmPiHardware: ...@@ -356,7 +356,7 @@ class OhmPiHardware:
def _compute_tx_volt(self, pulse_duration=0.1, strategy='vmax', tx_volt=5., vab_max=voltage_max, def _compute_tx_volt(self, pulse_duration=0.1, strategy='vmax', tx_volt=5., vab_max=voltage_max,
iab_max=current_max, vmn_max=None, vmn_min=voltage_min, polarities=(1, -1), delay=0.05, iab_max=current_max, vmn_max=None, vmn_min=voltage_min, polarities=(1, -1), delay=0.05,
diff_vab_lim=2.5, n_steps=4): p_max=None, diff_vab_lim=2.5, n_steps=4):
# TODO: Optimise how to pass iab_max, vab_max, vmn_min # TODO: Optimise how to pass iab_max, vab_max, vmn_min
"""Estimates best Tx voltage based on different strategies. """Estimates best Tx voltage based on different strategies.
At first a half-cycle is made for a short duration with a fixed At first a half-cycle is made for a short duration with a fixed
...@@ -398,12 +398,12 @@ class OhmPiHardware: ...@@ -398,12 +398,12 @@ class OhmPiHardware:
""" """
if self.tx.pwr.voltage_adjustable: if self.tx.pwr.voltage_adjustable:
print(f'Vmn max: {vmn_max}')
if vmn_max is None: if vmn_max is None:
vmn_max == self.rx._voltage_max / 1000. vmn_max == self.rx._voltage_max / 1000.
p_max = vab_max * iab_max print(f'Vmn max: {vmn_max}')
if p_max is None:
# define a sill p_max = vab_max * iab_max
# Set gain at min # Set gain at min
self.rx.reset_gain() self.rx.reset_gain()
......
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