From 9b1154b9f16f67b7646e62ddc8a3cca4e86c29cb Mon Sep 17 00:00:00 2001 From: jhchun Date: Wed, 1 Jul 2026 12:16:48 +0900 Subject: [PATCH] =?UTF-8?q?burst=20=EA=B0=84=20gap=20500us=EC=97=90?= =?UTF-8?q?=EC=84=9C=20650=20us=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 데이터 안정화를 위함 --- src/measurement/piezo_measure.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/measurement/piezo_measure.c b/src/measurement/piezo_measure.c index 379465f..5d4ae7a 100644 --- a/src/measurement/piezo_measure.c +++ b/src/measurement/piezo_measure.c @@ -22,8 +22,17 @@ #define PIEZO_CFG_SAMPLES_MIN 80 #define PIEZO_CFG_SAMPLES_MAX 117 #define PIEZO_CFG_DELAY_MAX_US 50 + +/* + * piezo_select_channel() 안에서 MUX settle 1.3 ms를 이미 기다린 뒤, + * measurement layer에서 analog path/ADC 입력 안정화를 위해 0.5 ms를 한 번 더 기다린다. + */ #define PIEZO_POST_SELECT_SETTLE_US 500 -#define PIEZO_AVG_INTER_BURST_GAP_US 500 + +/* 평균/dummy burst 사이의 회복 시간 */ +#define PIEZO_AVG_INTER_BURST_GAP_US 650 + +/* real capture 전에 같은 채널에서 버스트+ADC capture를 버리는 횟수(dummy) */ #define PIEZO_DUMMY_CAPTURE_COUNT 5 /* 6채널 sweep 결과 (각 채널의 평균 완료 후 최종만 저장) */