Skip to content

Commit

Permalink
support berry imuv4
Browse files Browse the repository at this point in the history
  • Loading branch information
seandepagnier committed Jun 8, 2021
1 parent 19018e1 commit c69d190
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RTIMULib/IMUDrivers/RTIMUDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@
#define LSM6DS33_ADDRESS0 0x6a
#define LSM6DS33_ADDRESS1 0x6b
#define LSM6DS33_ID 0x69
#define LSM6DSL_ID 0x6a
#define ISM330DHCX_ID 0x6b

// LSM6DS33 Register map
Expand Down
2 changes: 1 addition & 1 deletion RTIMULib/IMUDrivers/RTIMULSM6DS33LIS3MDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool RTIMULSM6DS33LIS3MDL::IMUInit()
if (!m_settings->HALRead(m_accelGyroSlaveAddr, LSM6DS33_WHO_AM_I, 1, &m_imuid, "Failed to read LSM6DS33 accel/gyro id"))
return false;

if (m_imuid != LSM6DS33_ID && m_imuid != ISM330DHCX_ID) {
if (m_imuid != LSM6DS33_ID && m_imuid != LSM6DSL_ID && m_imuid != ISM330DHCX_ID) {
HAL_ERROR1("Incorrect LSM6DS33 accel/gyro id %d\n", result);
return false;
}
Expand Down

0 comments on commit c69d190

Please sign in to comment.