mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.35k stars 3.66k forks source link

Survey - Spacing Parameter #5193

Open tops4u opened 7 years ago

tops4u commented 7 years ago

Currently I'm flying Search Missions to find fawn in Farmlands. My FLIR Cam will cover about 25m with some added on safety margin I'll cut it down to 20m as the area was also uneven. So I did a survey and entered 20m as Grid Spacing. Now I noticed that at the Beginning / Ending sometimes the Survey would not fill up completely. One might argue that this is the nature of this parameter - if this is the case please add some more description on the '?' - Marks explanation.

My expectation was:

As can be seen on the Image below, that the last bit of the survey does not completely round up to the 20m Spacing so the last bit of around 10m broad would be left out. This is the End Part:

qgc

Vs the Measurement in Google Maps:

google

In this example this is peanuts as there is a house, in other scenarios it might be hard to tell if 100% of the Field is searched or not. This is important for this kind of mission.

On the other hand on the Beginning Side there would have been some space left...

qgc2

google2

DonLakeFlyer commented 7 years ago

I'm going to need the .plan files for these to reproduce.

tops4u commented 7 years ago

Here is the file.

Fröschern-Aetingen.plan.zip

DonLakeFlyer commented 7 years ago

There is also a problem in latest daily builds where grid angle is reversed.

DonLakeFlyer commented 7 years ago

@antiheavy Curious if you have experience with other product which solve this problem. The issue is when the transect it just outside the bounds of the survey polygon. It will get clipped out. Which will mean you will not end up getting images over the last part of the area. I tried both Mission Planner and DroneDeploy and they both have exactly the same problem.

Here is a debug image which shows the transects prior to clipping. It shows an extreme case where you lose both left and right edges of the polygon.

screen shot 2017-05-25 at 2 50 13 pm

DonLakeFlyer commented 7 years ago

@WickedShell Do you deal with this?

WickedShell commented 7 years ago

@DonLakeFlyer Nope, given that for good photogrammetry you want extra coverage outside the target area, I've ignored this edge case as not being a common one. (and just extend the coverage polygon slightly if its a large concern. You could try and create extra lines around the outside edges, but it gets really complicated/unexpected quickly.

tops4u commented 7 years ago

I could live with that, the problem for the 'normal' User is, that this behaviour is not obvious or at least I did not expect it to work this way.

My Expectation was, that the whole area inside the Polygon would be covered and the Distance (Spacing) between the Flying-Paths would be equal to my Camera coverage. As it is now my Coverage will miss out parts at the edges and this is not visible for me.

WickedShell commented 7 years ago

@tops4u the problem you quickly run into is that (again speaking from a photomapping perspective) a single outside line/edge isn't enough coverage for processing. The beast automated response is to grow the survey region by an oversize parameter. (Requires a bit of math for none awful oversizing, implementation wise shouldn't be to bad, you just have to walk your polygon and push out against the winding direction, I just didn't rate it that high as a priority)

DonLakeFlyer commented 7 years ago

You could try and create extra lines around the outside edges, but it gets really complicated/unexpected quickly.

Yeah I can see that. I'm going to move to 3.3. But even then I'm not confident there is any sane way to fix this problem.

Antiheavy commented 7 years ago

Ha! yep, this is a common problem in the various tools I've used.

I've seen some tools that will try to center the flight paths (transects) inside the polygon such that the space on the two sides is equal and minimized. i.e. if the transect spacing is 20 meters then there will be a maximum of 10 meters between the sides of the polygon and the first/last transect.

I've also seen tools that will cheat the transect spacing say +/- 10% or something to make things fit better, I don't like this approach as it screws with your overlap.

The polygon isn't really the area on the ground that will be imaged; it is the area for the aircraft to fly in. Calculating flight paths based on estimate of camera pixels on the ground would be interesting, but nobody really does that because it is a can of worms.

WickedShell's suggestion of drawing the polygon slightly large so that your flight paths cover what you need is the simplest approach.

tops4u commented 7 years ago

Sorry for my stupid question, but why not doing it like this? Add one more Transection and place everything in the middle of the polygon? Or alternatively add one more that has a narrower spacing?

Currently it might be hard to tell if you leftout some part. If you draw it bigger there might be a problem that there are obstacles you want to avoid (Trees for instance) or that the Camera will look at much warmer things (parked Cars, Streets) which will influence the AGC so that fawn may not be found reliably. This is not a Problem at turnaround points but when the transection is at the edge.

Sorry if I this gets too complicated.

DonLakeFlyer commented 7 years ago

I'm sure there are lots of different way to solve this. But at this point none of them are going to make it into 3.2 Stable.

tops4u commented 7 years ago

@DonLakeFlyer ok, I'll be patient ;-)

Some thing else I wanted to ask... Where did the Daily Build Download Page go to? On qgroundcontrol.org there are only the releases the Beta Page vanished. I don't have my own Build System and was happy using latest master builds. Sorry for mixing this thread up, but I didn't find other means to contact you.

DonLakeFlyer commented 7 years ago

Daily builds are under Releases: https://docs.qgroundcontrol.com/en/releases/daily_builds.html.

DonLakeFlyer commented 4 years ago

Lost in the fray of too many issues...