Commit 7fcab6e4 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates current_max in config

Showing with 1 addition and 3 deletions
+1 -3
......@@ -21,7 +21,7 @@ HARDWARE_CONFIG = {
'pwr': {'model': 'pwr_dps5005', 'voltage': 3., 'interface_name': 'modbus'},
'tx': {'model': 'mb_2024_0_2',
'voltage_max': 50., # Maximum voltage supported by the TX board [V]
'current_max': 4.8/(50*r_shunt)/5, # Maximum voltage read by the current ADC on the TX board [A]
'current_max': 4.8/(50*r_shunt), # Maximum voltage read by the current ADC on the TX board [A]
'r_shunt': r_shunt, # Shunt resistance in Ohms
'interface_name': 'i2c',
'vmn_hardware_offset': 2501.
......
......@@ -49,8 +49,6 @@ voltage_max = np.min([TX_CONFIG['voltage_max'],
np.min(np.hstack((np.inf, [MUX_CONFIG[i].pop('voltage_max', np.inf) for i in MUX_CONFIG.keys()])))])
voltage_min = RX_CONFIG['voltage_min']
print(f'Current max: {current_max:.2f}')
def elapsed_seconds(start_time):
lap = datetime.datetime.utcnow() - start_time
......
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