ArduPilot / ArduPilot/MissionPlanner

Optimise MAVFTP upload to improve performance

Open
#3,229 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
2.9k
Avg merge
19h 16m
Merged PRs (30d)
4

Description

A Copter-4.4 user reported in [this discussion](https://discuss.ardupilot.org/t/terrain-data-loading-on-sd-card-via-mavftp-is-slow/107750/3) that manually uploading a terrain file (produced using https://terrain.ardupilot.org/) using MP's MAVFTP screen is extremely slow. In my tests it was able to upload only 1MB of a 30MB file in 5min.
![image](https://github.com/ArduPilot/MissionPlanner/assets/1498098/dbd31afa-f420-426e-9292-284ac54b2104)

Performance was the same whether Copter-4.4 or 4.5.0-dev was used. I tested on a CubeOrangePlus.

Surprisingly though MP does better than MAVProxy which fails completely (at least on windows). Here is the corresponding MAVProxy issue https://github.com/ArduPilot/MAVProxy/issues/1270

In case it helps, these messages scrolled by on the MP console a lot.
![image](https://github.com/ArduPilot/MissionPlanner/assets/1498098/530b52d5-abc5-4b5f-b87d-779795421330)

![image](https://github.com/ArduPilot/MissionPlanner/assets/1498098/b5da94a3-624e-40f3-867a-bb7fbf33ca92)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at Mission Planner's MAVFTP screen and reproduce the report by uploading a 30MB terrain file produced by terrain.ardupilot.org, while observing the MP console messages. Compare the transfer behavior with the reported 1MB-in-5-minutes result and the linked MAVProxy issue. Done means the MAVFTP upload completes substantially faster and reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.