Test RTIMULib on J120-IMU with Jetson TX2

Environment

  • Jetson TX2
  • JetPack 3.1
  • Auvidea J120-IMU
  • J120 firmware (kernel and patches) v1.5

Setup

$ cd ~/QTCreator
$ git clone https://github.com/jetsonhacks/RTIMULib
$ cd RTIMULib/Linux/RTIMULibDemoGL
$ qtcreator RTIMULibDemoGL.pro

Change line 75 of RTIMUHal.cpp like this.

// sprintf(buf, "/dev/spidev%d.%d", m_SPIBus, m_SPISelect);
sprintf(buf, "/dev/spidev1.0");

Run

Build Release project and run.

$ cd ~/QtCreator/RTIMULib/Linux/build-RTIMULibDemoGL-JetsonTX2-Release/Output$
$ sudo ./RTIMULibDemoGL

Reference