andrejcampa / compass

Compass sensor for ubuntu touch devices
GNU General Public License v3.0
2 stars 5 forks source link

Xompass not working on Xenial hammerhead #4

Open JassMan23 opened 6 years ago

JassMan23 commented 6 years ago

Doesn't work on Nexus 5 D821. It displays a compass, says azimuth -1 but does absolutely nothing. Even the calibrate button doesn't react if pressed.

andrejcampa commented 6 years ago

It is low level reading of magnetic sensor data obtained from the file /sys/devices/platform/msensor/driver/sensordata It was only tested on Bq phone, and the Nexus might not have this magnetic sensor data at this place, or maybe they have changed the place in a newer version. You should probably stick to higher level libraries.