appoly / ARCore-Location

Allows items to be placed within the AR world with real-world GPS coordinates using ARCore.
https://www.appoly.co.uk/arcore-location/
MIT License
478 stars 154 forks source link

Possible way of improving compass accuracy. #35

Open MarkYHZhang opened 6 years ago

MarkYHZhang commented 6 years ago

As mentioned in the readme file, there is a problem with compass accuracy. I did a little research and I wonder if it is possible or feasible to implement this fix into this library.

Essentially the idea is to take "one GPS reading when the user starts the app and have them walk in a straight line and take another GPS reading. Then with these two points you can tell which direction that person was walking (assuming their camera is pointing in the direction they are walking)".

"Their project uses AR Position deltas and GPS Position deltas to calculate an angle which is the offset from the AR camera to true north."

I believe this could be a possible solution to the compass accuracy issue as it is implemented in a closed-source library called "MapBox". I really hope to see this idea come to life in this open-source project!

source: "Step 2: Stupid Compass" in http://www.instructables.com/id/Placing-AR-Objects-at-GPS-Coordinates-in-Augmented/

johnwedgbury commented 6 years ago

We'd appreciate any contributions towards achieving this!