Altitude measurement and control, why is GPS default?

Currently in the APM code, the default altitude measurement doesn't appear to use the pressure sensor on the board. Is there good reason for this, such as drift or something? I understand it should be much more accurate than GPS.

I have flown with the default settings, which give steady results. Although I haven't yet done an automatic landing. So I intend to do some tests as the altitude is a bit more crucial on landing.

Has anyone fiddled with this parameter or know a reason why GPS is better?

For reference here's the relevant extract:
// ALTITUDE_MIX OPTIONAL
//
// Configures the blend between GPS and pressure altitude.
// 0 = GPS altitude, 1 = Press alt, 0.5 = half and half, etc.
//
// The default is to use only GPS altitude.
//
//#define ALTITUDE_MIX 0

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    And I'll add that just because something is a default doesn't mean it is best - LOL

    Often it is a default because we think it will be "safer" for a broader range of people/systems. Sometimes it is a default because it was just the way we are used to doing it. Sometimes it is the default because one of us forgets to change it from our personal setting to what we intend to be the default when we commit changes to the repository and it just gets perpetuated.

    Some day when we have time (meaning likely never) we will go through and "fix" all the defaults ;)

    But on this particular issue, I am in agreement. I think 100% baro is the way to go. It looks much better particularly around the transitions when you start or stop climbing or descending.
  • Developer
    Doug is flying now with 100% pressure altitude.
    GPS is a known quantity and we had earlier issues with the BPM library. That's all sorted now for the release and the pressure is beating the GPS in accuracy.
    Jason
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…