Traceback (most recent call last):
File “AccelGyroMag.py”, line 39, in
if imu.testConnection():
File “/home/Navio/Python/navio/mpu9250.py”, line 288, in testConnection
response = self.ReadReg(self.__MPUREG_WHOAMI)
File “/home/Navio/Python/navio/mpu9250.py”, line 263, in ReadReg
self.bus.open(self.spi_bus_number, self.spi_dev_number)
IOError: [Errno 2] No such file or directory
Does anyone know what I could have been doing wrong?
Thanks for help.
The code examples are for Navio, not for Reach. That is the reason why they do not work. In order to get access to the IMU you need to wait for a new firmware image that is coming out shortly. Current image does not have required driver patches to run IMU reliably.
Pure luck And thanks to Linux abstraction layers. Anyhow, we intend to add support and document IMU sampling, but currently this is completely accidental that it works.