Hi wsalopek,
My experience is primarily with Arduplane, so the parameters I’m pointing out are for that build. I’ll take a look later (or a copter person can pop in) and see if I can find the counterparts for Copter.
These parameters (for plane) enable terrain following, which will mean your waypoint altitude will be AGL, or as close as can be estimated by your map data.
I spent awhile looking for a parameter that I thought existed, which dealt with requiring a certain altitude before a waypoint could be marked as completed. Couldn’t find it, maybe I’m mistaken and was thinking of loiter to alt. I hope this helps a bit.
[quote]Use terrain following (ArduPlane:TERRAIN_FOLLOW)
This enables terrain following for CRUISE mode, FBWB mode, RTL and for rally points. To use this option you also need to set TERRAIN_ENABLE to 1, which enables terrain data fetching from the GCS, and you need to have a GCS that supports sending terrain data to the aircraft. When terrain following is enabled then CRUISE and FBWB mode will hold height above terrain rather than height above home. In RTL the return to launch altitude will be considered to be a height above the terrain. Rally point altitudes will be taken as height above the terrain. This option does not affect mission items, which have a per-waypoint flag for whether they are height above home or height above the terrain. To use terrain following missions you need a ground station which can set the waypoint type to be a terrain height waypoint when creating the mission.
VALUE MEANING
0 Disabled
1 Enabled[/quote]
[quote]Terrain data enable (TERRAIN_ENABLE)
enable terrain data. This enables the vehicle storing a database of terrain data on the SD card. The terrain data is requested from the ground station as needed, and stored for later use on the SD card. To be useful the ground station must support TERRAIN_REQUEST messages and have access to a terrain database, such as the SRTM database.
VALUE MEANING
0 Disable
1 Enable[/quote]
[quote]Terrain lookahead (ArduPlane:TERRAIN_LOOKAHD)
This controls how far ahead the terrain following code looks to ensure it stays above upcoming terrain. A value of zero means no lookahead, so the controller will track only the terrain directly below the aircraft. The lookahead will never extend beyond the next waypoint when in AUTO mode.
Range: 0 10000
Units: meters[/quote]