2021-06-04, 03:23 AM
Hi
I am trying to get the BerryGPS-IMUv4 working with pypilot, which uses LSM6DSL + LIS3MDL.
LSM6DSL isnt recognised by RTIMULib2, but the LSM6DS33 is.
These chips are basically the same, they using the same registers. The LSM6DSL has a lot more, but aren't needed for basic functionality. They do however have different responses to the WHO_AM_I register. (this is why RTIMULib2 doesn't recognise it)
I was able to get RTIMULib2 to recognise the LSM6DSL, by downloaded the code, changing the response for the "WHO" register for the LSM6DS33 to match the LSM6DSL and then complying and installing.
If I run RTIMULib2 (RTIMULibDemo) from the command line, it recognises the IMU and works well.
However, if i run pypilot, i get "IMU not detected"
I made sure RTIMULib2.ini has been updated under ~/.pypilot And manually set the IMU type.
It would be great if we got this chip working as we have a lot of people asking to to get it working with OpenPlotter
BTW:We are using the OpenPlotter basic starter image
Thanks in dance!
Mark
I am trying to get the BerryGPS-IMUv4 working with pypilot, which uses LSM6DSL + LIS3MDL.
LSM6DSL isnt recognised by RTIMULib2, but the LSM6DS33 is.
These chips are basically the same, they using the same registers. The LSM6DSL has a lot more, but aren't needed for basic functionality. They do however have different responses to the WHO_AM_I register. (this is why RTIMULib2 doesn't recognise it)
I was able to get RTIMULib2 to recognise the LSM6DSL, by downloaded the code, changing the response for the "WHO" register for the LSM6DS33 to match the LSM6DSL and then complying and installing.
If I run RTIMULib2 (RTIMULibDemo) from the command line, it recognises the IMU and works well.
However, if i run pypilot, i get "IMU not detected"
I made sure RTIMULib2.ini has been updated under ~/.pypilot And manually set the IMU type.
Code:
# 12 = STM LSM6DS33 + LIS3MDL
# 13 = HMC5883L + ADXL345 + L3G4200D
IMUType=12
It would be great if we got this chip working as we have a lot of people asking to to get it working with OpenPlotter
BTW:We are using the OpenPlotter basic starter image
Thanks in dance!
Mark