From 09d06283f9dd552f8a6660a9dfabf90d25b8daf9 Mon Sep 17 00:00:00 2001 From: Junichiro Sugihara Date: Thu, 20 Jun 2024 16:36:37 +0900 Subject: [PATCH] [Spinal][IMU] modified pin assign for imu --- aerial_robot_nerve/spinal/mcu_project/boards/stm32H7/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerial_robot_nerve/spinal/mcu_project/boards/stm32H7/Src/main.c b/aerial_robot_nerve/spinal/mcu_project/boards/stm32H7/Src/main.c index bc1163dd0..ebd86fa85 100644 --- a/aerial_robot_nerve/spinal/mcu_project/boards/stm32H7/Src/main.c +++ b/aerial_robot_nerve/spinal/mcu_project/boards/stm32H7/Src/main.c @@ -236,7 +236,7 @@ int main(void) #if IMU_MPU imu_.init(&hspi1, &hi2c3, &nh_, IMUCS_GPIO_Port, IMUCS_Pin, LED0_GPIO_Port, LED0_Pin); #elif IMU_ICM - imu_.init(&hspi1, &hi2c3, &nh_, SPI1_CS_GPIO_Port, SPI1_CS_Pin, LED0_GPIO_Port, LED0_Pin); + imu_.init(&hspi1, &hi2c3, &nh_, IMUCS_GPIO_Port, IMUCS_Pin, LED0_GPIO_Port, LED0_Pin); #endif IMU_ROS_CMD::init(&nh_); IMU_ROS_CMD::addImu(&imu_);