I'm developing a C++ program on Ubuntu Touch (Nexus 4, no GUI) and I would like to read some accelerometer values in. I was hoping I could just include a library and call a function that would return the x,y,z acceleration values.
I noticed theres a qtubuntu-sensors and a libqt5sensors5 package here: http://packages.ubuntu.com/trusty/qtubuntu-android and some sample code here: http://doc-snapshot.qt-project.org/qt5-5.4/qtsensors-cpp.html but I'm confused at how to put it all together to read the sensor values into a C++ program.
Any help would be appreciated!