Dear Emlid people.
I am currently working with two other people on 3 sets of raspberry pi 2 + Navio 2. We all seem to encounter the same problem with the spi interface, so our IMU’s are not working like we would like them to. Our goal is to use the navio board on an RC motorbike, to make some autonomous control, using ROS ( http://wiki.ros.org/ )
Here are the different approaches that we used :
-
Flash the SD card using your own raspbian image. In that case, it is working until a certain point. We figured out from some other forum that the python scripts were not so reliable so we only tried with the C++ version at the end. At this point it is working, until we do apt upgrade, at which point, it is kinda screwing up the kernel somehow ? If we install spi-dev it is also not working anymore.
-
We also tried using some already made images with ROS on them, but that makes the same errors.
-
We tried installing ROS from source, that made the same errors
-
We tried installing ROS from binaries, in this case, we were lacking some libraries ( libboost-mt something ) etc and we could not compile…
-
We also tried installing ubuntu on the RPI but that didn’t work either.
-
We tried using the raspi-config to enable the device tree, the spi interface, also in boot.txt with dtparam=spi=on etc…
-
We also tried the backup of some kernels (suggested somewhere else on the forums) but none of those solutions work permanently. Actually, We had many cases when we thought that it was suddenly working by miracle, even when we rebooted, but when we left for lunch and left it powered off, it was not working when powered on again…
The only way it was working was if we used a fresh image from EMLID and without any modifications…
The main problems that we encounter (For the IMU) are :
Sensor not enabled (C++) / Connection established : true or false, with random output values (Python ) etc. So, Apparently, there is a kernel upgrade from 2708 to 2709 or 2835 or something, which changes everything for the IMU drivers, so anytime that we change those kernels during upgrades or installs or anything, the IMU’s are not working anymore.
So we are kind of desperate, because we need this to work ASAP for our master thesis… We would like to know if there is any way of using the new kernels by upgrading everything and installing new packages such as ROS, or using ubuntu 14.04 LTS, but to make the spi interface still work.
Is there anyone who could help us with this we would be very grateful.