Commit 8d351cd1 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Adds constant strategy

Showing with 4 additions and 3 deletions
+4 -3
......@@ -413,15 +413,16 @@ class OhmPiHardware:
# Set gain at min
self.rx.reset_gain()
vab_opt = tx_volt
vab = np.min([np.abs(tx_volt), vab_max])
if strategy == 'constant':
vab_max = tx_volt
tx_volt = tx_volt * .9
vab_max = vab
tx_volt = vab * .9
strategy = 'vmax'
vab_max = np.abs(vab_max)
vmn_min = np.abs(vmn_min)
k = 0
vab_list = np.zeros(n_steps + 1) * np.nan
vab = np.min([np.abs(tx_volt), vab_max])
vab_list[k] = vab
# self.tx.turn_on()
switch_pwr_off, switch_tx_pwr_off = False, False # TODO: check if these should be moved in kwargs
......
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