mbb? 응답 시 TMP235 → IMU Temp 변경

This commit is contained in:
2026-06-12 17:33:43 +09:00
parent 1b923c0d37
commit e04a7af6c9
3 changed files with 225 additions and 14 deletions
+22
View File
@@ -36,6 +36,28 @@ int imu_init(void);
*/
int imu_read(int16_t accel[3], int16_t gyro[3]);
/**
* @brief IMU 6축 + 내부 온도 1회 측정
*
* 센서 설정 → 전원 ON → 80ms 대기 → temp/accel/gyro 14바이트 읽기 → 전원 OFF
*
* @param accel 가속도 XYZ
* @param gyro 자이로 XYZ
* @param temp_cdeg 섭씨 x100 출력
* @return 0 성공, 음수 에러
*/
int imu_read_with_temperature(int16_t accel[3], int16_t gyro[3], int16_t *temp_cdeg);
/**
* @brief IMU 내부 온도 1회 측정
*
* TEMP_DATA1/2를 읽어 섭씨 x100 정수로 변환한다.
*
* @param temp_cdeg 섭씨 x100 출력
* @return 0 성공, 음수 에러
*/
int imu_read_temperature_cdeg(int16_t *temp_cdeg);
/**
* @brief IMU FIFO 캡처 시작
*