Compass App
#1
Hi everyone,

My name is Leonardo and working together with my brother Marco we wrote a very rudimentary Compass app for the Pinephone with Python. To our knowledge, there is no such app available to date. Check the screenshot at the bottom.

We have tested the app in Phosh (Manjaro, Mobian and postmarketOS) and Plasma Mobile (Manjaro). For the moment it only works with "old" (a.k.a. pre-beta edition) Pinephones, which have the original magnetometer chip LIS3MDL. If it is not found, it will just display randomly generated values.

Currently the app is a proof of concept and not intended for daily-driving. That being said, you can get it and try it from

https://gitlab.com/lgtrombetta/pinephone-compass/

For best results, follow the suggestion in the Readme about changing the Sampling Frequency of the magnetometer. Take also into consideration the issue of calibration. We will try to come up with a tool to automatize these tweaks in the future.

We hope the app can be useful to some people. We intend to improve it over time, and of course, we are open to constructive criticism and contributions! Keep in mind though, that this is our first open source project, so please be kind.

Enjoy!


[Image: screenshot.png]


Changelog:

v0.3.1

* Preliminary support for the AF8133J magnetometer (Pinephone Beta edition). Needs custom kernel driver and patches.
* Advertise the app to Phosh as adaptive.

v0.3

* Complete project refactoring:
- Installation now handled by meson build system
* Complete GUI overhaul in GTK3 with:
- Magnetic field readings now shown under the compass card.
- Settings window with graphical calibration tool
- Dark/light theme switch
- About window

v0.2

* Automatic changing of the sampling frequency
* Calibration tool
* Major code refactoring

v0.1

*Initial Release
  Reply


Messages In This Thread
Compass App - by lgtrombetta - 06-23-2021, 10:54 AM
RE: Compass App - by awaittrot - 06-23-2021, 09:08 PM
RE: Compass App - by threepwood - 06-24-2021, 02:27 AM
RE: Compass App - by lgtrombetta - 06-24-2021, 09:16 AM
RE: Compass App - by lgtrombetta - 06-24-2021, 02:58 PM
RE: Compass App - by threepwood - 06-25-2021, 06:35 AM
RE: Compass App - by biketool - 06-25-2021, 07:08 AM
RE: Compass App - by lgtrombetta - 06-25-2021, 01:20 PM
RE: Compass App - by lgtrombetta - 06-26-2021, 07:28 AM
RE: Compass App - by lgtrombetta - 07-10-2021, 07:55 AM
RE: Compass App - by biketool - 07-28-2021, 01:07 AM
RE: Compass App - by lgtrombetta - 07-30-2021, 04:17 AM
RE: Compass App - by biketool - 07-30-2021, 08:14 AM
RE: Compass App - by newton688 - 09-09-2021, 08:42 PM
RE: Compass App - by lgtrombetta - 09-13-2021, 11:57 AM
RE: Compass App - by newton688 - 09-16-2021, 08:19 PM
RE: Compass App - by newton688 - 09-25-2021, 02:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)