Giter VIP home page Giter VIP logo

Comments (9)

garthvh avatar garthvh commented on June 24, 2024

It is one or the other, there is a single altitude value on the packet and the value changes based on your position flag. It is possible some devices do not support HAE. There is also not much of a use case for having both, as you are either in an airplane or on the ground but seldomly both.

from firmware.

kovar-ursa avatar kovar-ursa commented on June 24, 2024

If I set just ALTITUDE no altitude data is transmitted. I must set both ALTITUDE and ALTITUDE_MSL for any altitude data to be sent. This seems to force me to use MSL for altitude values.

The code is setting either p_altitude or p.altitude_hae depending on ALTITUDE_MSL. Maybe p.altitude is being sent out even if p.altitude_hae is the one that is set? (I'm not sure where in the code this is handled.)

from firmware.

garthvh avatar garthvh commented on June 24, 2024

if you have MSL checked (which is the default) it outputs MSL for altitude, otherwise HAE

if (pos_flags & meshtastic_Config_PositionConfig_PositionFlags_ALTITUDE_MSL) p.altitude = localPosition.altitude; else p.altitude_hae = localPosition.altitude_hae;

from firmware.

kovar-ursa avatar kovar-ursa commented on June 24, 2024

With bitmask 163 (ALTITUDE, ALTITUDE_MSL, SATINVIEW, TIMESTAMP)

!e2e5b84c │ 42.9693° │ -70.9999° │ 42949665 m. (ignore the bad value for altitude)

With bitmask 161 (ALTITUDE, SATINVIEW, TIMESTAMP):

!e2e5b84c │ 42.9693° │ -70.9999° │ N/A

If I turn off ALTITUDE_MSL but still have ALTITUDE set, no altitude data is transmitted.

I just did the above and the only change to the config file was 163 -> 161. Same firmware, hardware, etc.

from firmware.

garthvh avatar garthvh commented on June 24, 2024

@jp-bennett have you seen a HAE altitude value ever? The code looks to be adding it to the packet and sending it out if the position flag is set but there never seems to be a value.

from firmware.

jp-bennett avatar jp-bennett commented on June 24, 2024

have you seen a HAE altitude value ever?

I'm not even entirely sure what an HAE altitude is. I'll look into it when I get back to my work on checking for empty fields.

from firmware.

garthvh avatar garthvh commented on June 24, 2024

have you seen a HAE altitude value ever?

I'm not even entirely sure what an HAE altitude is. I'll look into it when I get back to my work on checking for empty fields.

Altitude value for aircraft

from firmware.

kovar-ursa avatar kovar-ursa commented on June 24, 2024

HAE is height above ellipsoid. I believe this is the "normal" GPS altitude value, i.e., what all GPS receivers provide.

Some modern GPS receivers have added the ability to calculate height above mean sea level, MSL. This is traditionally done with barometric pressure sensors.

So, I believe, HAE data is what you get from all GPS receivers and MSL data only is produced by GPS receivers with the ability to calculate height above MSL.

from firmware.

kovar-ursa avatar kovar-ursa commented on June 24, 2024

https://avionicswest.com/Articles/GPSalt.html

from firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.