Skip to content

Commit

Permalink
[Spinal][Imu] change file structure of imu
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Apr 3, 2024
1 parent 7e9bb80 commit fd423fe
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include <spinal/Imu.h>

#include "flashmemory/flashmemory.h"
#include "sensors/imu/imu_mpu9250.h"
#include "sensors/imu/icm_20948.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"
#include "sensors/imu/drivers/icm20948/icm_20948.h"
#include "sensors/imu/imu_ros_cmd.h"
#include "sensors/baro/baro_ms5611.h"
#include "sensors/gps/gps_ublox.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#error "Please define __cplusplus, because this is a c++ based file "
#endif

#include "sensors/imu/icm_20948.h"
#include "sensors/imu/drivers/icm20948/icm_20948.h"

void ICM20948::init(SPI_HandleTypeDef* hspi, I2C_HandleTypeDef* hi2c, ros::NodeHandle* nh,
GPIO_TypeDef* spi_cs_port, uint16_t spi_cs_pin,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define __IMU_ICM_H

#include "config.h"
#include "imu_mpu9250.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"


#define SENSOR_DATA_LENGTH 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
#ifndef __cplusplus
#error "Please define __cplusplus, because this is a c++ based file "
#endif

#include "sensors/imu/imu_mpu9250.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"

uint8_t IMUOnboard::adc_[SENSOR_DATA_LENGTH];
uint32_t IMUOnboard::last_mag_time_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "config.h"
#include "math/AP_Math.h"
#include "imu_basic.h"
#include "sensors/imu/imu_basic.h"

#define SENSOR_DATA_LENGTH 7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
////////////////////////////////////////
//TODO: should include the super class//
////////////////////////////////////////
#include "sensors/imu/imu_mpu9250.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"
#include "sensors/imu/drivers/icm20948/icm_20948.h"
#include "sensors/baro/baro_ms5611.h"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
#ifdef SIMULATION
#include <tf/LinearMath/Matrix3x3.h>
#else
#include "sensors/imu/imu_mpu9250.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"
#include "sensors/imu/drivers/icm20948/icm_20948.h"
#include "sensors/gps/gps_ublox.h"
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
////////////////////////////////////////
//TODO: should include the super class//
////////////////////////////////////////
#include "sensors/imu/imu_mpu9250.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"
#include "sensors/imu/drivers/icm20948/icm_20948.h"
#include "sensors/gps/gps_ublox.h"

class PosEstimate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include <spinal/MagDeclination.h>

/* sensors */
#include "sensors/imu/imu_mpu9250.h"
#include "sensors/imu/drivers/mpu9250/imu_mpu9250.h"
#include "sensors/imu/drivers/icm20948/icm_20948.h"
#include "sensors/baro/baro_ms5611.h"
#include "sensors/gps/gps_ublox.h"
#endif
Expand Down

0 comments on commit fd423fe

Please sign in to comment.