Author Topic: Global Positioning System navigating in three dimensions  (Read 2170 times)

0 Members and 1 Guest are viewing this topic.

Offline jonovidTopic starter

  • Super Contributor
  • ***
  • Posts: 1523
  • Country: au
    • JONOVID
Global Positioning System navigating in three dimensions
« on: September 23, 2020, 02:20:31 am »
can the GPS navigate in three dimensions?
can GPS signals be used to acquire the height above sea level?
with in 4 to 5 Meters?
if not why not?
to know the road gradients in a city for cycling. or walking trail
is this or that street flat or has a gradient?
Hobbyist with a basic knowledge of electronics
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12411
  • Country: au
Re: Global Positioning System navigating in three dimensions
« Reply #1 on: September 23, 2020, 03:03:42 am »
GPS only does positioning in 3 dimensions.  Mapping 3D coordinates to the irregular shape of the Earth's surface was one of the challenges when being implemented for us ground dwellers.

As for accuracy, I would expect elevation would have similar precision to lateral position.  It all depends on how good a set of signals you are able to receive.

Navigation in 3 dimensions, however, would only be possible if the maps used contained altitude information and the application was programmed to process this information ... which is something I don't know.

However, I think it would be interesting if the turn-by-turn instructions said "Turn right in 100 metres then ascend 15 metres".
« Last Edit: September 23, 2020, 03:07:57 am by Brumby »
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7549
  • Country: 00
  • +++ ATH1
Re: Global Positioning System navigating in three dimensions
« Reply #2 on: September 23, 2020, 03:33:05 am »
Not sure about accuracy, remembered last time when I was on a plane, while sitting near window seat, run the GPS app at my phone, it showed clearly the altitude, speed and coordinate.
« Last Edit: October 05, 2020, 03:58:07 am by BravoV »
 
The following users thanked this post: cdev

Offline kjpye

  • Contributor
  • Posts: 36
  • Country: au
Re: Global Positioning System navigating in three dimensions
« Reply #3 on: September 23, 2020, 03:52:08 am »
GPS certainly handles elevation -- I use it all the time, but it's accuracy is significantly worse than horizontal accuracy.

Most, if not all, of the visible satellites are near the horizon. Consequently the distance to those satellites varies relatively slowly with your elevation, and so the error bars on vertical measurements are much larger than those for horizontal measurements.
 
The following users thanked this post: Ed.Kloonk, Someone

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5049
  • Country: si
Re: Global Positioning System navigating in three dimensions
« Reply #4 on: September 23, 2020, 05:38:14 am »
GPS can only work in 3D because the earth is round (At least according to sane people)

But due to the earth not being a perfect sphere the GPS module has to use a globe approximation to figure out where sea level actually is, so depending on what geode model is used the altitude result might be slightly different from the real altitude. But given that you want to record altitude variation of a cycling path that is nothing to worry about since a cycling path is not going to be long enough for this to become a big problem.

If you want some redundancy to GPS signal loss you can also add a barometric altitude sensor. They can vary a bit due to weather air pressure changes, but you can compensate that out by calibrating it to the GPS altitude.

EDIT:
Oh and GPS modules are also programed to stop working on purpose when above a certain very very high altitude or breaking the speed of sound. This is due to a silly US law to prevent them from being used as guidance for intercontinental ballistic missiles. I'm pretty sure if the opposing army has the budget for such a missile they also have the budget to figure out how to circumvent this safety feature.
« Last Edit: September 23, 2020, 05:42:01 am by Berni »
 

Offline tkamiya

  • Super Contributor
  • ***
  • Posts: 2178
  • Country: us
Re: Global Positioning System navigating in three dimensions
« Reply #5 on: September 23, 2020, 05:59:44 am »
GPS has several modes for "locking."  Typically, they lock in 3D mode when sufficient number of satellites are acquired.  Or, lock in 2D mode when signal is poor and not enough satellites are found.  Or, it can even lock in time signal only mode.  You select this by sending a command to your GPS module.  Otherwise, they typically default in 3D locking.

Accuracy is limited to I think one meters?  That has to do with number of satellites and accuracy of timing capture.  Just a little bit of "wobble" in timing on GPS satellite limits accuracy.  There are military signals sent in different band.  Most of this is secret.  I wouldn't be surprised if better resolution is available in military mode.

Surveying equipment using GPS module uses multiple receivers and make use of phase difference to achieve centi-meter level accuracy.  You "could" do that, if your budget is unlimited.
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1796
  • Country: se
Re: Global Positioning System navigating in three dimensions
« Reply #6 on: September 23, 2020, 08:23:28 am »
If you want some redundancy to GPS signal loss you can also add a barometric altitude sensor. They can vary a bit due to weather air pressure changes, but you can compensate that out by calibrating it to the GPS altitude.
Yup, that's exactly what decent outdoor sports GPSs do, e.g. my Garmin Sp64s.
You can calibrate it at a known elevation, then it will use both the pressure sensor and the GPS to track the elevation.

The actual way the readings are integrated is part of their secret sauce, but it works quite well in practice, with less than 10 m approximation after 1000-1500 m climb or descent.
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline em132

  • Contributor
  • Posts: 15
  • Country: ca
Re: Global Positioning System navigating in three dimensions
« Reply #7 on: October 04, 2020, 12:40:20 pm »
Most, if not all, of the visible satellites are near the horizon.
??

You're likely thinking of TV sats in geostationary orbit. GPS sats are not geostationary and "visible" ones can be anywhere in the sky. GPS wouldn't work otherwise.
 

Offline NivagSwerdna

  • Super Contributor
  • ***
  • Posts: 2507
  • Country: gb
Re: Global Positioning System navigating in three dimensions
« Reply #8 on: October 04, 2020, 01:39:56 pm »
with in 4 to 5 Meters?
if not why not?
https://xcmag.com/news/gps-versus-barometric-altitude-the-definitive-answer/ might give some insight.
Essentially the geometry of the satellite constellation means that lots of the satellites are below the horizon and without them there are more errors in the 'altitude' axis.
GPS actually solves in 4D... that's how it eliminates errors in the local receiver clock.
 

Offline nfmax

  • Super Contributor
  • ***
  • Posts: 1618
  • Country: gb
Re: Global Positioning System navigating in three dimensions
« Reply #9 on: October 04, 2020, 01:45:42 pm »
Most, if not all, of the visible satellites are near the horizon.
??

GPS sats are not geostationary and "visible" ones can be anywhere in the sky.

True. But there is much more sky at low elevations, so at any given moment,  the satellites are more likely lie within it.
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5049
  • Country: si
Re: Global Positioning System navigating in three dimensions
« Reply #10 on: October 04, 2020, 07:42:57 pm »
You get a pretty random distribution of GPS satelites across the sky because they have fairly low and fast orbits going in all sorts of directions. But yeah you are definitely not getting any satellites from below since the planet is in the way.

Tho GPS receivers will tend to take the signal from the low elevation satellites with a grain of salt, trusting more the high elevation ones. This is because low elevations make the signal travel through a lot more of the atmosphere where varying conditions can cause slight variations in the radio propagation speed, messing the measurements up a lot more. So while yes geometrically these satellites seem more favorable, but physics gets in the way of it.

This is the reason why the military L2 GPS signal is on a different frequency band (This makes antennas more difficult). The other frequency is affected by the atmospheric conditions slightly differently, so comparing the L1 and L2 signals can give it an idea of how much the signal was distorted and so allowing it to be corrected for.
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: Global Positioning System navigating in three dimensions
« Reply #11 on: October 04, 2020, 09:22:06 pm »
The issue with accuracy in the vertical plane can be reduced substantially in many GPS's simply by turning the GPS on and leaving it on for a while (the longer the better, dont just turn it on and use it when it first aquires its fix, the longer it stays on the better the positional accuracy will likely be.) If you can wait a few hours before using capturing elevation readings you'll get a better reading. Ideally it should be just left siffing there. If you have a kalman filter setting thelling it its being used by a pedestrian you'll get better accuracy too.

With a GPS in a cell phone it should have the full accuracy available soon after its turned on.

You can get slightly better vertical accuracy by setting an elevation mask of 15 degrees, this tells the GPS to ignore signals from satellites that are near the horizon which often have reflections.

Make sure your antenna is sitting on a flat metal ground plane if its a patch type antenna.
« Last Edit: October 04, 2020, 09:26:26 pm by cdev »
"What the large print giveth, the small print taketh away."
 

Offline kjpye

  • Contributor
  • Posts: 36
  • Country: au
Re: Global Positioning System navigating in three dimensions
« Reply #12 on: October 05, 2020, 03:51:45 am »
There seem to be two major problems some people are having here:

1. A lack of knowledge of how GPS really works; and
2. spherical geometry is hard.

GPS satellites travel in 6 well-defined orbits at an altitude of a bit over 20,000 km. They are not random, and not particularly fast. The orbital period is 12 hours, so the same satellites will be in about the same positions every 12 hours.

GPS uses the time-of-flight of signals to calculate the distance from each satellite and, knowing the position of the satellites (which the satellites tell you) you can calculate your time and position.

A satellite which is overhead will give you a good idea of your elevation but a very poor idea of your horizontal position. (Moving sideways will not change your distance from the satellite much.) Similarly, a satellite near the horizon due north of you will give a good idea of your latitude, but not much else, and so on.

Even if the satellites were randomly distributed across your sky, most of them would still be closer to the horizon than overhead. This is fairly obvious if you imagine we are the centre of the earth -- in which case only 25% of the sky is closer to overhead then the horizon, but because we are about one quarter of the way out to the satellites, and satellites below the horizon can't be seen, most satellites are much closer to the horizon than overhead, and so the accuracy of the elevation suffers.
 
The following users thanked this post: Fgrir

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5049
  • Country: si
Re: Global Positioning System navigating in three dimensions
« Reply #13 on: October 05, 2020, 05:43:04 am »
In terms of low elevation i mostly meant the sort of below 15 degree elevation where it really goes on trough the atmosphere for a long time, or in a lot of cases will be obscured anyway by hills, buildings, trees...

Yes geometrically the north south position is more favorable, but you still tend to get a a few satellites in a cone above 30-45 degrees that can provide useful elevation info. Especially on a modern receiver that will make use of GLONASS satellites too. So it would make sense that you would still get the usual a handful of meters accuracy.

If the goal is to get accurate altitude then normal L1 GPS is the wrong way to do it anyway. You can set up a stationary reference station and use RTK capable receivers to do differential GPS and get millimeter accuracy. With long distances between receivers it gets more into the centimeters similar to military L2 receivers, but still orders of magnitude more accurate.

But for cycling? Who cares. Not like you would feel any difference between cycling up a 300m or 290m hill
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: Global Positioning System navigating in three dimensions
« Reply #14 on: October 05, 2020, 11:05:08 pm »
The GPS system is like a tape measure, it tells you how long that tape measure is at a precisely defined time, once with each satellite. The GPS also has access to a ephemeris which is orbital predictions for the many SVs (space vehicles, basically GPS and WAAS satellites) WAAS can improve the accuracy of altitude signals, BTW.  Also the GPS has access to a "geoid" model which is a model of the oblate spheroid of earth (its shaped like a slightly squashed ball, its not perectly spherical) and also earths tides, and also gravity anomalies figure in there too.

Basically, GPS is one of the best examples out there of engineering, using multiple disciplines in physics, electromagnetics (radio), and mathematics, making heavy use of a great many branches of science together.

If you have access to a GPS with the ability to be used with it and want to see all this being done, I highly recommend RTKlib a program by Tomoji Takasu, a Japanese professor who single handedly revolutionized the affordability of ultra precise positioning.. His web page is at http://gpspp.sakura.ne.jp/indexe.html

Its possible that your garden variety GPS now supports RTKlib out of the box and using RTKlib can have sub centimeter accuracy, with a good antenna.

many cheap Ublox receivers do to varying degrees.

« Last Edit: October 05, 2020, 11:12:38 pm by cdev »
"What the large print giveth, the small print taketh away."
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf