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

Adds constant strategy

Showing with 1 addition and 0 deletions
+1 -0
...@@ -436,6 +436,7 @@ class OhmPiHardware: ...@@ -436,6 +436,7 @@ class OhmPiHardware:
diff_vab = np.inf diff_vab = np.inf
if strategy == 'constant': if strategy == 'constant':
tx_volt = vab_max*.9 tx_volt = vab_max*.9
strategy = 'vmax'
if strategy == 'vmax': if strategy == 'vmax':
while (k < n_steps) and (diff_vab > diff_vab_lim) and (vab_list[k] < vab_max): while (k < n_steps) and (diff_vab > diff_vab_lim) and (vab_list[k] < vab_max):
vabs = [] vabs = []
......
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