The autonomous/gps enabled modes are not stable, but have been demonstrated. They are basically for developer use only right now, so there is not a lot of information and you will need to look at the source code to see exactly how it works. You should be able to use auto mode for the way points and the altitude frame specified as ‘altitude above terrain’ for the terrain following.