Terrain Follow implementation
When I check the Terrain Follow box and Write WPs, then Read WPs, the Terrain Follow checkbox is then no longer checked. If it try to check it again I get a window saying "You will need to change your altitudes".
I have TERRAIN_ENABLE and TERRAIN FOLLOW set to 1. When looking at the STATUS tab, I see ter_pend at 504 and ter_load at 0. I have a HUD display warning that says BAD/NO TERRAIN DATA. How do I get the terrain data to load?
I just had to reboot the Pixhawk and now the terrain_pend is loading. I would still like a way to confirm if the WPs are referencing the Terrain or Home. I would prefer each waypoint to be designated so I can have some referencing terrain and others not. If I want to fly at my legal limit of 400ft while I travel to my area of interest, then I want to map that hilly area while flying the contours, then fly back at a constant altitude again.
im aware of the terrain unticking issue.
also I do not plan on implementing mission with multiple frame types. (ie abs, rth, terrain)
Is terrain following working despite the unticking? I haven't had a chance to test it. Is there someway that MP can display that Terrain Following is activated so the user doesn't get surprised by the aircraft's behavior?
So long as the box is ticked when you upload, yes it is working.
From: iskess [mailto:[email protected]] Sent: Tuesday, 12 August 2014 12:39 AM To: diydrones/MissionPlanner Cc: Michael Oborne Subject: Re: [MissionPlanner] Terrain Follow implementation (#566)
Is terrain following working despite the unticking? I haven't had a chance to test it. Is there someway that MP can display that Terrain Following is activated so the user doesn't get surprised by the aircraft's behavior?
— Reply to this email directly or view it on GitHub https://github.com/diydrones/MissionPlanner/issues/566#issuecomment-51805637 . https://github.com/notifications/beacon/511568__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzM5NDM0MCwiZGF0YSI6eyJpZCI6MzkzMDIzMDh9fQ==--81e9c15ffd34e9e390c809ce6cd3eafbdb8163de.gif
Hi, I was tempted to use Terrain Following but have some reservations. In the Flight Plan screen, there a three selections for type of "altitude", Relative, Absolute and Terrain. Got it. Okay, now to use Terrain Following, how do I set AGL I want. I assume the box to the left or Default Altitude. Yes or no? What effect does checking the "verify height" box have? Soooo, I check the verify height, I pick the Terrain, I designate 100' as Default Altitude. I make a straw man mission and save it to the PH. Now to be sure, I "read" the mission back from the PH and the drop down is either Absolute or Relative! What the....? I run the map tool, elevation graph and it looks nothing like the mission is following a terrain. In fact, it looks like I'm clipping some high peaks. Please help me out here. Thanks a lot! Also, re-direct me if these are Tridge questions.
Another comment...similar to what I think Iskess is asking, I would like to see the WP designated as to what "altitude" they are using as a safety measure. For example, it could be WPT for Terrain, WPA for Absolute and WPR for Relative. It would also be nice to have a vertical indicator to see the "Y axis" track to altitude. Like a "real time" elevation graph (heaven). But at the moment, I don't have the confidence to do something for the first time without some checks and balances. In other words, I want to be more certain that I'm planning and executing what I thought I was. Thanks again.
Reference issue #573 for the vertical profile request.
Ok, I tried the Terrain Following feature today and it seemed to work well. Based on today's experience, I have a suggestion to add to those above. Please add a feature where one can select the minimum altitude that the PH will respond to. For example, let's say I'm flying at 400' AGL and the Terrain dips 20', I probably don't want to follow it. For safety, you may need to make this a negative number only as a 20' hill might have an unhappy ending if you are flying low enough. The other thing I would like to see is a warning if there is incomplete or inadequate data loaded on the PH for flying the mission. For instance, how do I know, before it's too late, that there is enough info for the "look ahead". Observation, I could swear, there was some roll action during TF. Also, if I engage return to home, will the PH go straight line or follow a lower route through a valley if the rate of climb limits would be exceeded. Fun stuff, thanks!
What happened to the Terrain Follow option? First it was a box to be checked above the WP list, Then it became a drop-down menu to choose Absolute, Relative, or Terrain. Now it is gone? Did it move somewhere else?
Hmmm...I didn't even check. I haven't been using it after my F/S and crash. On another topic, I still think "plane" F/S deserves the same thorough vetting that the copter got about two years ago.
I've just flown my plane into a hill because terrain following did not work as expected. Only explanation I can find so far is that MissionPlanner > MapTool > ElevationGraph > SRTM value is 0 for the whole mission (GE value does reflect terrain), and looking at the dataflash log, TERR > TerrH was 0 for the whole mission. I wish there was a better way to predict the behaviour of terrain following for a given mission upload to Pixhawk.
please upload your tlog
I'd like to see the tlog too, thanks!
As you can see above, I had a "flying into a hill" experience too. Mine was in FS mode where the plane failed to hold altitude. My plane was stolen, so stolen, so no tlog. I'll be following the forensic engineering with great interest. As I've suggested in the past, with all due respect to developers, the plane FS and RTL needs the same scrutiny and vetting that the copter folks did a couple of years ago.
@meee1 @tridge : I only have dataflash logs, will PM you a dropbox link via diydrones (if you like). There are three flights of interest, I'll call them (A), (B) and (C). (A) was the hillside crash two days ago. After wiping MP (and all files in program files) then reinstalling, MP started showing SRTM elevation data and an appropriate mission altitude profile in the elevation graph, which was enough reassurance to attempt another mission. I flew a new mission the next day (B) with terrain selected (but not verify height) in MP during survey definition and upload. I set the altitude 50m higher than in (A) in case terrain following did not work. The graph for (B) shows that the altitude was constant despite large variations in terrain. I then carried out another flight (C) with terrain selected as well as Verify Height. The Verify Height feature resulted in appropriately adjusted altitudes in the Flight Plan table which was reassuring. (My previous MP installation (3.16) did not make adjustments to the Survey grid (v1).) I'm not sure if Terrain had any effect in Auto during (C), but it seemed to do so in RTL (nb RTL came in too low because I had accidentally set alt_hold_rtl to 150 instead of 15000, a repeat of a mistake that cost me a wing some months back!).
just to be clear, you don't normaly run telemetry while you fly?
I do, but wiped my telemetry logs while doing a clean install of MP. Didn't care about them because I normally use my dataflash for analysis anyway.
I've looked at the DF logs, and it shows that the recorded terrain height was zero, for example: 2015-01-09 02:11:02.16: TERR {TimeMS : 2173854, Status : 2, Lat : -34.5660709, Lng : 19.4833462, Spacing : 100, TerrH : 0.0, CHeight : -1.29000091553, Pending : 0, Loaded : 672}
We only expect TERR.TerrH to be zero when over ocean. This is quite possibly a MissionPlanner bug. Grant, can you test this with SITL using the mission from the logs from Joris?
I've put the DF logs here http://uav.tridgell.net/Joris/
Note that if this is a MP bug then we will need to change the magic number in the AP_Terrain database, to ensure that all existing users auto-wipe their old (and possibly incorrect) terrain data.