From e7765340d1971f1b752f100e87d7e4f12022d150 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Thu, 4 May 2023 18:36:42 +0200 Subject: [PATCH] Renames Controller as Ctl --- hardware_components/ohmpi_card_3_15.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware_components/ohmpi_card_3_15.py b/hardware_components/ohmpi_card_3_15.py index 8a95e6bb..d7c40c24 100644 --- a/hardware_components/ohmpi_card_3_15.py +++ b/hardware_components/ohmpi_card_3_15.py @@ -41,7 +41,7 @@ TX_CONFIG['current_max'] = np.min([current_adc_voltage_max / (TX_CONFIG['r_shunt # TX_CONFIG['voltage_max'] = np.min([pwr_voltage_max, TX_CONFIG.pop('voltage_max', np.inf)]) # V TX_CONFIG['voltage_max'] = TX_CONFIG.pop('voltage_max', np.inf) # V TX_CONFIG['voltage_min'] = -TX_CONFIG['voltage_max'] # V -# TX_CONFIG['default_voltage'] = np.min([TX_CONFIG.pop('default_voltage', pwr_default_voltage), TX_CONFIG['voltage_max']]) # V +TX_CONFIG['default_voltage'] = np.min(TX_CONFIG.pop('default_voltage', np.inf), TX_CONFIG['voltage_max']) # V # TX_CONFIG['pwr_switch_on_warm_up'] = TX_CONFIG.pop('pwr_switch_on_warmup', pwr_switch_on_warmup) TX_CONFIG['mcp_board_address'] = TX_CONFIG.pop('mcp_board_address', tx_mcp_board_address) TX_CONFIG['low_battery'] = TX_CONFIG.pop('low_battery', low_battery) -- GitLab