From 669964dafc13eedfe6bb362f05976dff3788220f Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sat, 15 Apr 2023 17:50:11 +0200 Subject: [PATCH] Fixes missing low_battery key in TX_CONFIG --- hardware/ohmpi_card_3_15.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/ohmpi_card_3_15.py b/hardware/ohmpi_card_3_15.py index cd6f4550..d7798d52 100644 --- a/hardware/ohmpi_card_3_15.py +++ b/hardware/ohmpi_card_3_15.py @@ -26,6 +26,7 @@ RX_CONFIG['voltage_max'] = np.min([voltage_adc_voltage_max, RX_CONFIG.pop('volta # ADC for current current_adc_voltage_min = 10. # mV current_adc_voltage_max = 4500. # mV +low_battery = 12. # V (conventional value as it is not measured on this board) tx_mcp_board_address = 0x20 # dps_voltage_max = 12. # V dps_default_voltage = 12. # V @@ -37,6 +38,7 @@ TX_CONFIG['voltage_max'] = np.min([dps_voltage_max, TX_CONFIG.pop('voltage_max', TX_CONFIG['default_voltage'] = np.min([TX_CONFIG.pop('default_voltage', dps_default_voltage), TX_CONFIG['voltage_max']]) # V TX_CONFIG['dps_switch_on_warm_up'] = TX_CONFIG.pop('dps_switch_on_warmup', dps_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) def _gain_auto(channel): """Automatically sets the gain on a channel -- GitLab