kylecorry31 / Trail-Sense

An Android app that uses your phone's sensors to assist with wilderness treks or survival situations.
https://kylecorry.com/Trail-Sense/
MIT License
1.22k stars 74 forks source link

Solar panel aligner sometimes gives very incorrect azimuth #2562

Closed Stormwind99 closed 1 month ago

Stormwind99 commented 1 month ago

Solar panel aligner sometimes gives very incorrect rotation/azimuth - like 90-180 degrees off.

I make sure GPS and Magnetometer are good, and that compass reading makes sense.

If I rotate my phone upside down (giving negative tilt) or if I place the screen against the solar panel (making it hard to see) then it appears the azimuth is correct.

Phone is a Samsung S22+.

Screenshot_20240918_152628_Trail Sense Screenshot_20240918_153252_Trail Sense Screenshot_20240918_152642_Trail Sense Screenshot_20240918_152712_Trail Sense Screenshot_20240918_153121_Trail Sense Screenshot_20240918_153250_Trail Sense

P.S. Thanks for Trail Sense! I use it frequently when camping (full-time now), hiking, and backpacking.

kylecorry31 commented 1 month ago

Thank you for the detailed report, it definitely seems like the azimuth is incorrect in this case (the target azimuth, not the current device azimuth). I'm able to reproduce the issue on my device as well.

I'll look to fix this in the next release.

kylecorry31 commented 1 month ago

This should be fixed in the nightly build (https://github.com/kylecorry31/Trail-Sense/discussions/1940).

The next release will be in early - mid October.

Stormwind99 commented 1 month ago

Thanks!!! I see it in commit 907ec31970729f34e933a30be28605a29b02c20e