MUX 채널 선택 이후 노이즈 삭제를 위한 dummy burst 횟수 매크로

- 6 → 5회
- 실제 측정 시 4회까지 노이즈 발견되었음
This commit is contained in:
2026-05-19 14:05:33 +09:00
parent e36efea7aa
commit f5e54269a1
2 changed files with 7 additions and 2 deletions
@@ -1348,8 +1348,8 @@ dr_adc_err_t maa_async_start(uint8_t freq_option, uint16_t delay_us, uint16_t nu
/* capture all channels without BLE TX, then start transmission */
g_maa_ctx.state = MAA_ASYNC_CAPTURING;
/* Warm up CH0 6 times and discard the results before the real capture starts. */
for (uint8_t warmup = 0; warmup < 6; warmup++)
/* Warm up CH0 before real capture (MAA_ASYNC_WARMUP_COUNT). */
for (uint8_t warmup = 0; warmup < MAA_ASYNC_WARMUP_COUNT; warmup++)
{
err = dr_adc_capture_channel_only(
g_maa_ctx.freq_option,
@@ -326,6 +326,11 @@ void dr_piezo_select_channel(uint8_t channel);
#define MAA_NUM_CHANNELS 6 /* 4 -> 8 -> 6 jhChun 26.03.17*/
#define MAA_SAMPLES_MAX 200
/* CH0 warm-up captures before maa/mbb/mtb (each costs ~1 MUX settle + burst + ADC). */
#ifndef MAA_ASYNC_WARMUP_COUNT
#define MAA_ASYNC_WARMUP_COUNT 5U
#endif
/**
* @brief Echo data for one channel
*/