How does an iphone directional compass work?

Presumably it could, but mine only displays magnetic, not true. I compared it with the wife’s iPhone compass, and they agree perfectly (as well as I can tell).

I delved into to it a little more and got the following:
Sensor Status:
Magnetometer->Medium
Accelerometer->Good
Gyroscope->Good
RotationVector->Good
Magnetic Field Strength 47 uT (u=micro, don’t know how to code that symbol here)

The altitude app shows barometric pressure, so I assume there’s a barometer in there somewhere.

Thanks a lot. Now I have yet another way to be distracted by my phone.

The app on my phone that I have to pay for to use is – or was, since I’ve just deleted it – Compass GPS. I do have Compass in my Extras app. It would be nicer if it was on the main screen, but at least I know where it is.

Just move it if you want it on the first screen.

Same here. I Letterbox and Geocache so I’ve used mine quite a bit for years.

As @Chronos mentioned, I wasn’t talking about forming a satellite compass on a ship using two phones - I was talking about implementing a satellite compass on a single phone using two GPS receivers in that single phone. If you put a receiver at each end of the phone, the separation distance is only a few inches, likely not enough for GPS to resolve with acceptable accuracy.

Some remarkable things are done with GPS.
Instantaneous velocity is usually done with Doppler. It isn’t as accurate as using positional information but is available right away. More accurate requires time.
So I wouldn’t be surprised if a passable estimate of orientation could not be got from phase differences along the length of a phone. Not going to be as good as a magnetic compass, but not totally unusable either. The more satellites in view across the sky the better- just like positioning.
GPS receiver chips are now about a rice grain in size and not a huge impost on the BOM.
I rather doubt there is enough value in the idea but it isn’t totally hopeless.

Nitpick: “topography.”

(Topology is the science of “why is a donut like an earthworm?”)

Oh Oh Oh, pick me! I know the answer.

They both have a hole all the way through themiddle

Yup. A “torus.”

Alternately, a topologist is someone who can’t tell his ass from a hole in the ground, but can tell his ass from two holes in the ground.

Fair enough; I misread what you were saying- you’re exactly right!

I resemble that remark.

Yeah, shortly after posting I realized I mistyped but missed the edit window and didn’t want to bump the thread for the correction, anticipating someone else might anyway. :slight_smile: (I use the word “topology” dozens of times a year and the word “topography” approximately never, so my fingers happily typed the wrong word.)

An altimeter is simply a barometer with a different face on it.

Well, a pressure-based altimeter is, but that’s not the only way to measure altitude, which is why I was testing the principle of operation of this particular altimeter.

As you may know, I put a new battery in my old iPhone 6s. I checked the compass, and it gave me my elevation. (I think it’s off by 10 or 15 feet.) I checked my iPhone SE, and it does not give me the elevation.

I read something once (a couple decades ago) about how very busy harbors had a system that improved the accuracy of GPS. They would find a high position, like the top of a building, and survey the location very accurately. Then they put a GPS receiver there. By comparing its known location with where the GPS receiver thought it was, they could determine how much of an error the GPS receiver was experiencing. Then they would broadcast that error to the ships in the harbor, which were calculating their GPS position from the same satellite signals as the reference location. By applying that correction, they were accurate within centimeters, instead of meters.

All of which suggests to me that the inaccuracy of GPS isn’t purely random. Two receivers in close proximity, picking up signals from the same satellites, at the same time, will have the same positional error. If that’s true, then receivers at the bow and stern of a ship would be off by the same amount. That doesn’t help calculate your position, but you should be able to get an accurate orientation.

And, as pointed out, a smartphone is small enough that even a small error in either receiver is going to lead to a big error in orientation.

I may not be correct in how the GPS error works, or I may be out of date. Can anyone here fight my ignorance about how GPS works?

Whoever wrote that was not a topologist. Unless you dig down, then sideways, then up (creating a tunnel), a “hole in the ground” doesn’t change the topology.

I think that’s right, but I’m not a topologist.

Here’s a cool article from Penn State about sources of error in GPS position determination.

https://www.e-education.psu.edu/geog160/node/1924

You can also keep digging until you emerge from the other side. Well, topologically you can. Reality is a little different.

To paraphrase Winston Zeddemore, that’s a big donut.