1. Attachments are working again! Check out this thread for more details and to report any other bugs.

GPS altitude

Discussion in 'Gen 1 Prius Plug-in 2012-2015' started by Jerry Liebler, Sep 1, 2014.

  1. Jerry Liebler

    Jerry Liebler Member

    Joined:
    Jan 12, 2014
    177
    85
    0
    Location:
    Science Hill Kentucky
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    I was redoing my auxiliary dashboard (a Galaxy tablet running "Torque") when I noticed "GPS altitude" so I made it one of my gauges. It does work ! It seems to lag a good bit because a couple of times the altitude would go up even though I was regening down a hill. I live in a tiny Kentucky town, Science Hill, and make frequent trips to a larger town, Somerset KY. I make occasional trips to the nearest city, Lexington. At home the GPS shows 980 feet, in Somerset, 10 miles away, it's 820 feet. To get to Lexington I must climb to 1220 feet then descend to 740ft in Lexington. Now I understand why I get better mileage going to Lexington than on the return trip and why I use less EV miles getting to Somerset than returning.
     
  2. bisco

    bisco cookie crumbler

    Joined:
    May 11, 2005
    107,683
    48,934
    0
    Location:
    boston
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    cool! i would love to know my altitude.:cool:
     
  3. jdcollins5

    jdcollins5 Senior Member

    Joined:
    Aug 30, 2009
    5,131
    1,338
    0
    Location:
    Wilmington, NC
    Vehicle:
    2010 Prius
    Model:
    III
    What are the PID parameters for GPS ALTITUDE? That would be interesting to monitor.
     
  4. GregP507

    GregP507 Senior Member

    Joined:
    Apr 5, 2014
    3,002
    480
    0
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    My Garmin tells my altitude when I touch the vehicle icon, but I've never found it to be very accurate. It's usually off by 50m or more. My Galaxy Note 2 has a barometer to help compensate for such inaccuracies, but it's not been much of an improvement so far. The app I use let's me dial in the barometric pressure, which I get from a weather app. But it also seems to be off. I think there needs to be an overhaul of the GPS system to improve altitude accuracy.
     
  5. bisco

    bisco cookie crumbler

    Joined:
    May 11, 2005
    107,683
    48,934
    0
    Location:
    boston
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    is it actually an altimeter, or just based on google maps?
     
  6. GregP507

    GregP507 Senior Member

    Joined:
    Apr 5, 2014
    3,002
    480
    0
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    It's based on triangulation from satellites, which it notoriously inaccurate.
     
  7. bisco

    bisco cookie crumbler

    Joined:
    May 11, 2005
    107,683
    48,934
    0
    Location:
    boston
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    i think the army gave us the bad satellites and kept the good ones, which makes sense i suppose.
     
  8. gallde

    gallde Active Member

    Joined:
    Jul 29, 2004
    238
    130
    0
    Location:
    Tarrytown, NY
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Advanced
    Very true. The U.S. GPS system is optimized for accuracy in the "X-Y" plane, not the "Z" plane, at least in the public mode we have access to. The government and military has access to a more-accurate augmentation system that can locate in 3-D space to millimeter accuracy: GPS.gov: Augmentation Systems .


     
  9. Jerry Liebler

    Jerry Liebler Member

    Joined:
    Jan 12, 2014
    177
    85
    0
    Location:
    Science Hill Kentucky
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    My BS meter went off scale at this one! GPS can have accuracy of inches with the proper equipment like that used in surveying, cruise missiles, commercial aircraft and drones. The accuracy is in 3 dimensions, in other words lat, long, ALTITUDE! The inaccuracies are due to the cheap and dirty implementations in consumer electronics.
    Yes GPS works by measuring time differences in microwave propagation from multiple satellites (up to 12 at once). From the time difference measurements and the orbital positions of the satellites a 3 dimensional location is calculated. The speed and precision of the calculations are what usually limits accuracy.
     
  10. Robert Holt

    Robert Holt Senior Member

    Joined:
    Aug 3, 2013
    1,313
    888
    0
    Vehicle:
    2012 Prius
    Model:
    Three
    You point is well taken, but I think you must also consider the ability to time-average the GPS altitude estimates in any geostationary use. Averaging 100s of estimates over time will give far more accurate results.
    Estimating alt while driving is harder and while flying harder still as the situation is changing every second, sometimes quite dramatically. I have been evaluating the altitude estimates of a Bad Elf GPS Pro unit as some pilots use it for flight purposes. So far in "automobile" mode the estimates are unstable enough for me to not want to use it in an aircraft for precision approaches without a LOT more careful testing.
     
  11. Jerry Liebler

    Jerry Liebler Member

    Joined:
    Jan 12, 2014
    177
    85
    0
    Location:
    Science Hill Kentucky
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    I'd like to see the source for the statement "The U.S. GPS system is optimized for accuracy in the "X-Y" plane, not the "Z" plane" as I believe it is simple BS. My understanding is that all 3 dimensions of a position estimate have equal uncertainty. Most consumer, commercial implementations simply don't bother refining the estimates of altitude. Early on in the history of GPS there was a deliberate reduction in available accuracy called "selective availability" but that ended during the first gulf war.
     
  12. GregP507

    GregP507 Senior Member

    Joined:
    Apr 5, 2014
    3,002
    480
    0
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    No BS here. I've used GPS equipment which can determine a position within 4 inches, but it cost $10,000 or more. It uses a number of algorithms for error-correction, and it took about 20 minutes of processing to achieve that accuracy. The same company (Trimble) offered a lower-cost model ($5000) could achieve about 8" accuracy with proprietary PC software which downloaded correction data from a number of base stations, with post-processing.

    Instead of calling "BS," I suggest you research the topic a bit. Consumer-grade GPS equipment can't compare with that used in surveying.
     
    #12 GregP507, Sep 1, 2014
    Last edited: Sep 1, 2014
  13. Robert Holt

    Robert Holt Senior Member

    Joined:
    Aug 3, 2013
    1,313
    888
    0
    Vehicle:
    2012 Prius
    Model:
    Three
    I think that would be true if the GPS receiver were a point in space surrounded by satellites scattered evenly in the X, Y, and Z directions. But an automobile GPS must cope with a hemisphere of available satellites at best, usually narrower than that, so I believe there is more uncertainty in the Z direction (alt), especially if one operates a car in an urban canyon. It is also quite possible that the solution algorithm can be adjusted to assume things like "only small changes in altitude per second" when solving for the X and Y locations.
    The Bad Elf's "aviation" mode setting (software selectable) may more evenly emphasize altitude along with latitude and longitude , but I cannot say for sure until I beg, buy, or borrow an airplane and go flying with it in that mode . But very important to do so before relying on its alt info on a dark and stormy night!
     
  14. Jerry Liebler

    Jerry Liebler Member

    Joined:
    Jan 12, 2014
    177
    85
    0
    Location:
    Science Hill Kentucky
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    Robert,
    The process of estimating position is certainly easier when the position is static. All GPS receivers do some "filtering" to refine the position estimate some estimate vehicle motion and use that to "predict" the position estimates. For aircraft use vehicle velocity in all 3 dimensions needs to be part of the filtering algorithm. OTH for terrestrial navigation occasional updates of altitude are relatively adequate. Using a hikers GPS for unlimited hydroplane racing is as foolish as using an automotive GPS to fly an airplane.
     
  15. Jerry Liebler

    Jerry Liebler Member

    Joined:
    Jan 12, 2014
    177
    85
    0
    Location:
    Science Hill Kentucky
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    Greg,
    You make my point completely! " triangulation from satellites, which it notoriously inaccurate." IS BS.
    With the proper equipment it is quite accurate. It is the cheap and dirty implementations that are notoriously inaccurate!
     
  16. GregP507

    GregP507 Senior Member

    Joined:
    Apr 5, 2014
    3,002
    480
    0
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Altitude Accuracy
     
    fuzzy1 and Chazz8 like this.
  17. Jerry Liebler

    Jerry Liebler Member

    Joined:
    Jan 12, 2014
    177
    85
    0
    Location:
    Science Hill Kentucky
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
  18. ETC(SS)

    ETC(SS) The OTHER One Percenter.....

    Joined:
    Oct 28, 2010
    7,673
    6,490
    0
    Location:
    Redneck Riviera (Gulf South)
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
  19. -Rozi-

    -Rozi- Member

    Joined:
    Dec 20, 2013
    134
    59
    0
    Location:
    Slovenia, E.U.
    Vehicle:
    2014 Prius Plug-in
    As much as I understand GPS receivers, the position is triangulated in orthogonal space (X-Y-Z). Those coordinates are then converted to spheric space (lat-long-elev) within GPS receiver. For the purpose of presentation only.

    Given X-Y-Z position of Earth center and X-Y-Z position of GPS receiver, latitude and longitude angles can be calculated quite straightforward by GPS receiver.

    However, calculating the elevation is a whole different story. Earth is not a perfect sphere. I remember, I've read somewhere, in order to approximate sea level elevation around the globe one would need to use a 2D polynomial of at least 28th order, which is an overkill for commercial GPS receivers to perform in real time.
    Since memory is cheap now-a-days, one would expect to have this problem solved with 2D lookup table stored in ROM by now. :(

    The end result is, the elevation is probably precise about the same as latitude and longitude, but it is not accurate. You just need to determine the offset for your area and your GPS receiver model manually.

    For calculating elevation difference within 500mi radius you should be fine using your GPS "altitude" measurement.
     
    #19 -Rozi-, Sep 2, 2014
    Last edited: Sep 2, 2014
    ETC(SS) likes this.
  20. GregP507

    GregP507 Senior Member

    Joined:
    Apr 5, 2014
    3,002
    480
    0
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Since when does anyone get surveying-grade "proper equipment" in a production car?