2022-02-16, 03:37 PM
(2022-02-15, 01:30 PM)cortinaman Wrote:(2022-02-15, 03:43 AM)seandepagnier Wrote: a quick search shows the LSM6DSL. It should be supported although this is not the usual sensor. I tested and the gyroscope has a higher noise level than icm20948/mpu9255 so I would prefer that sensor if possible instead.
What does i2cdetect -y 1 show?
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- 42 -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- --
70: -- -- -- -- -- -- -- 77
Where from BerryGPS-IMU v4 documentation:
0x1c = LSM6DSL accelerometer (not detectable from pypilot, even after procedure above and reinstalling pypilot)
0x1e = LIS3MDL magnetometer (not detected by i2cdetect above)
0x42 = GPS chip (this is a whole other kettle of fish)
0x6a = LSM6DSL gyro (not detectable from pypilot, even after procedure above and reinstalling pypilot)
0x77 = BM388 pressure/temperature sensor (these are visible in i2c app and connected to signalk)
(2022-02-16, 12:46 AM)seandepagnier Wrote: Which version of rtimulib2 is installed? It should detect it. Can you stop all pypilot processes and services and perhap install rtimulib2 from source and run the basic drive demo?
It could be something very simple like the sensors set to the secondary address or something like that. It should be supported.
try single stepping RTIMUSettings::discoverIMU in gdb
especially line 213:
} else if (result == LSM6DS33_ID || result == LSM6DSL_ID || result == ISM330DHCX_ID) {
and check the value of "result"
Sorry, my mistake.
I was mistaken about the i2c adresses, 0x1e should not be there. Correct addresses are:
- 0x6A for the gyroscope and accelerometer
- 0x1C for the magnetometer
- 0x77 for the pressure sensor
- 0x42 for GPS
This time I checked on pypilot after each step, after step 14 pypilot detected the imu and magnetometer so I stopped.
- sudo apt-get update
the above may fail, still continue
- sudo apt-get install libqt4-dev cmake -y
- git clone https://github.com/seandepagnier/RTIMULib2.git
- git clone https://github.com/pypilot/pypilot.git
- cd RTIMULib2/Linux/
- mkdir build
- cd build/
- cmake ..
- make -j4
- sudo make install
- sudo ldconfig
- cd ../python/
- python3 setup.py build
- sudo python3 setup.py install
- cd ~/pypilot/
- sudo python3 setup.py install
run the above command twice
Maybe it's time to clone the sd card before I continue with gps and PICAN-M.