Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clinometer in Android App #374

Open
bk138 opened this issue Sep 23, 2024 · 2 comments
Open

Clinometer in Android App #374

bk138 opened this issue Sep 23, 2024 · 2 comments

Comments

@bk138
Copy link

bk138 commented Sep 23, 2024

@wellenvogel would there be interest from your side to merge support for a clinometer backend and widget to the Android app? Would be very handy for a sailing vessel. I want to ask in advance before starting any work because:

  • This only makes sense if the Android device is mounted to the sailing vessel in a fixed position. Probably self-explanatory to users.
  • The instrument screens 1,2,3 in avnav are all already "full". This would need to be taken care of somehow.

If you're generally positive, I'd prepare a PR with the needed sensor changes and a very simple digit display (just a numeric degree view for now, indicating heel left/right or port/starboard).

Let me know what you think!

@bk138
Copy link
Author

bk138 commented Sep 23, 2024

Sorry, only searched for "clinometer" in existing issues, now found #101 on a 2nd look. Feel free to close either as a dupe.

@wellenvogel
Copy link
Owner

Could be an interesting feature.
The display is no problem at all - https://www.wellenvogel.net/software/avnav/docs/hints/layouts.html?lang=en.
So for a basic display nothing is to be done on the Browser side.
One could also use the SKPitchWidget to display the value (it can handle input in deg).
For the (Android-) server part:
Currently there is no real infrastructure to handle sensors.
Most probably a new Worker would be appropriate. Maybe it could be prepared to handle more sensors.
And it should be able to output a NMEA record (XDR) with the pitch value (or whatever it detects).
This way the decoder will automatically pick up the value and will provide it to the UI.
Potentially similar to what https://github.com/wellenvogel/avnav/blob/master/server/handler/sensehat.py is doing for the linux part.
And I guess the worker would need some config parameter(s) to somehow calibrate/adjust/enable/disable.
If you would like to start some work on that I would appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants