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

Allow map rotation by compass #260

Closed
rinigus opened this issue Jun 2, 2019 · 7 comments
Closed

Allow map rotation by compass #260

rinigus opened this issue Jun 2, 2019 · 7 comments

Comments

@rinigus
Copy link
Owner

rinigus commented Jun 2, 2019

Suggested in view and followMe modes

See http://talk.maemo.org/showpost.php?p=1557461&postcount=705

@sbridger
Copy link

sbridger commented Sep 15, 2019

adding a few more:
compass on bike
tristate button
calibration
Mentions compass current drain. Magnetic sensor chips are very low power sensors, so would need to test real current drain before assuming that this is true.
[Tested with Chargemon and OrienteeringCompass in Flight Mode, location=off, with both apps showing live tiles. Current drain does not appear to change with orienteeringcompass app paused or closed i.e. I don't think compass adds current drain.]

Magnetic compass calibration also needs to consider magnetic declination (20degrees here now). I can't see one in Sailfish->location->settings. How is the magnetic compass supposed to work?
Seems you would need to know local declination to show correct bearing. As an alternative / automation to a setting, this site seems to calculate and return json or other data formats
https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml#declination

@rinigus
Copy link
Owner Author

rinigus commented May 19, 2020

Looking into how to implement it and already first simple tests are very encouraging. Would have to include https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml? into Pure Maps, as we have location data available as well.

@rinigus
Copy link
Owner Author

rinigus commented May 23, 2020

Limiting the issue to compass support, no orientation by hand. If there is an interest in hand-based orientation of the map, open issue separately.

@rinigus rinigus changed the title Allow map rotation by compass and by hand Allow map rotation by compass May 23, 2020
@rinigus
Copy link
Owner Author

rinigus commented May 23, 2020

Now just need to add magnetic declination calculations. Looks like have to get some extra lib for it as Qt Position supports it from 5.4

@rinigus
Copy link
Owner Author

rinigus commented May 23, 2020

Implemented rotation by compass, closing.

@rinigus rinigus closed this as completed May 23, 2020
@sbridger
Copy link

Entering compass declination manually is also OK.
I will test as soon as there is a release for me to test.

Sadly the XA2 sfos gps and compass performance is practically unusable.

The major issue for me is that the GPS will get a lock under clear sky, unreliably in a car, and simply cannot get a lock at all under moderate tree cover (over a 1/2 hour period -zero positions. It does get enough signal to get ephemeris or maybe its using network, as it shows satellite plot). (sfos3.3)

By comparison my winphone 640 locks in 5 seconds with no network in the same positions.

A secondary issue is that the compass drifts terribly (3.2, haven't tried with 3.3 yet), and was unusable. I added declination to the compass app, but didn't do more with it when I found how much it drifted.

@rinigus
Copy link
Owner Author

rinigus commented May 24, 2020

On my device, lock may take some time, but when locked it seems to work fine. Compass works quite well too. Note that for compass, I have developed new hardware adaptations which are submitted for review and, hopefully, will be merged in the near future. I hope it will help XA2 as well

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

No branches or pull requests

2 participants