Commit 95916c5d authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Adds constant strategy

Showing with 2 additions and 1 deletion
+2 -1
......@@ -435,7 +435,8 @@ class OhmPiHardware:
current, voltage = 0., 0.
diff_vab = np.inf
if strategy == 'constant':
vab_max = tx_volt * 1.001
vab_max = tx_volt
tx_volt = tx_volt * .9
strategy = 'vmax'
if strategy == 'vmax':
while (k < n_steps) and (diff_vab > diff_vab_lim) and (vab_list[k] < vab_max):
......
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