From b1a9fa0ad477af71020c7436d177e3b914aa7b6b Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 8 Nov 2024 12:55:19 +0800 Subject: [PATCH] pyfastservo adc: Set default afe gain to 10x --- fast-servo/pyfastservo/adc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fast-servo/pyfastservo/adc.py b/fast-servo/pyfastservo/adc.py index 69a00b6..8d5e9e6 100644 --- a/fast-servo/pyfastservo/adc.py +++ b/fast-servo/pyfastservo/adc.py @@ -162,8 +162,9 @@ def configure_ltc2195(): main_adc_test_mode(spi, False) verify_adc_registers(spi, {0x02: 0x11}) # Verify test mode is off - - enable_adc_afe() + + # FIXME: AFE Gain 1x is not functional on that batch of fast servo under development + enable_adc_afe(ch1_x10=1, ch2_x10=1) finally: spi.close()