타이밍 최적화

- 온도 측정, Piezo 측정 사이 딜레이 줄이기
- Piezo 한 채널에서 평균화를 위한 반복 측정 사이 딜레이 줄이기

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jhChun
2026-03-20 10:43:59 +09:00
parent 1f1c4b0b25
commit 310ca152cf
5 changed files with 22 additions and 14 deletions

View File

@@ -507,7 +507,8 @@ int imu_read_direct(void)
{
uint8_t pwr_cmd[2] = { 0x1F, 0x0F }; /* reg=0x1F, val=0x0F */
icm42670_twi_tx(IMU_I2C_ADDR, pwr_cmd, 2, false);
nrf_delay_ms(80); /* 자이로 스타트업: 최소 45ms + 안전 마진 */
//nrf_delay_ms(80); /* 자이로 스타트업: 최소 45ms + 안전 마진 */
dr_sd_delay_ms(80);
}
/* ACCEL_DATA_X1(0x0B)부터 12바이트 연속 읽기 (0x0B~0x16) */