After seeing this excellent video of Randy (thanks! ):
With my Pixhawk under AC.3.4.5 and my EZ4 Maxbotix, I tried to do the same thing and did a terrain-following test that works well in auto mode, but no longer works when in the same flight I activate the Guided mode with Tower.
As I have not seen any terrain-following demonstration in Guided mode, I wonder if it actually works in this mode of flight? Or is there something I did not understand in the settings?
Sorry, in my mind it was clear what I was saying, but I can now clearly see that it was confusing. I was saying that, as far as I know, Tower doesn’t support terrain following in general and that, from an ArduPilot perspective, Guided does allow terrain following.
As for Mission Planner, it’s possible that it doesn’t have support for terrain following in Guided. You might want to open a feature request in MP’s GitHub: https://github.com/ArduPilot/MissionPlanner/issues
I just checked the code again and although we have a method in Guided to accept a Location structure (which can have the altitude set as an altitude-above-terrain) as far as I can see we never use that function! I’m thinking I will fix this though.
Thank you very much.
I think that, especially coupled with Guided and with FollowMe, this functionality became inevitable in front of what offers marks leaders of quads.
Currently the use of the rangefinder in manual modes is clever (use of the Terrain as reference base until RNGFND_MAX, and above use of the Baro of the Copter).
The FollowMe Mode in particular could be inspired by this (use of the Terrain as a reference base up to RNGFND_MAX, and above use of the Baro of the GroundStation).
After all, I’ve driven you in the wrong direction, I’m sorry about that. It looks like GCS don’t support terrain altitudes in Guided mode, but ArduPilot doesn’t too - it should be an easy fix in our end though.
I certainly wouldn’t say that. Some do, some don’t. And certainly older phones don’t have one. Just some stats from GSMArena: for the last two years, out of 1330 new phones, 77 had barometer. If you go just from 2016 until now, it was 625 phones of which 37 had barometer.
I too think the ability to track the altitude of the transmitter (phone, raspberry pi w/ barometer… etc) and the drone (receiver) is a great idea. Is there any update on this? I will try shuffling through the code base to see where these functions rmackay9 was referencing are located.
@Chris42 Hi Chris, how to succeed a terrain following mission in auto mode, just put a downward Lidar on the copter, set the parameter and get the range data successfully, then create a terrain mission using mission planner. Am I right?