hotosm / drone-tm

Drone Tasking Manager - community-driven drone imagery collection.
https://dronetm.org/
GNU Affero General Public License v3.0
12 stars 5 forks source link

Speeds over 12 m/s fail to load on Mini 4 Pro #329

Open ivangayton opened 4 days ago

ivangayton commented 4 days ago

TL:DR

We need to limit flight plan speeds to a maximum of 12 m/s in order to fly the DJI Mini 4 Pro. If a speed above 12 m/s is specified, the controller adjusts it down to 2.5 m/s and the flight plan proceeds at far too low a speed.

The probleme

If I create a flight plan with speeds over 11 m/and upload it to the RC2 controller attached to my Mini 4 Pro, it transfers to the drone without any problems, but when I try to load it onscreen it offers to "adjust and open" rather than simply opening. If I agree, the plan loads.

However, when I fly the drone, it proceeds at a ridiculously low speed.

It turns out that the "adjustment" when the flight plan is opened on the controller is replacing the global speed (which at my given parameters worked out to 12.65 m/s) with a default of 2.5 m/s.

If I manually lower the speeds to 12 m/s (or lower), it opens without complaint and flies the path normally.

proposed solution

Cap all speeds in flight plans for the Mini 4 Pro at 12 m/s max.

nrjadkry commented 3 days ago

Speed is calculated based on different parameters like gsd, AGL, image interval and forward overlap. Here is the calculations done to generate the speed of drone.

    forward_photo_height = agl * VERTICAL_FOV
    side_photo_width = agl * HORIZONTAL_FOV
    forward_overlap_distance = forward_photo_height * forward_overlap / 100
    side_overlap_distance = side_photo_width * side_overlap / 100
    forward_spacing = forward_photo_height - forward_overlap_distance
    side_spacing = side_photo_width - side_overlap_distance
    ground_speed = forward_spacing / image_interval

Do we restrict all of these dependent parameters ?