Create a file transfer util using Flutter for waypoint mission file copy#793
Create a file transfer util using Flutter for waypoint mission file copy#793spwoodcock wants to merge 3 commits intodevfrom
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CONTRIBUTING.md document and I hereby sign and agree with the guidelines |
Assisted by: Opus 4.6 LLM
c42b63b to
bfe3b2a
Compare
|
@zestyping are you able to test the attached apk with the DJI RC2 controller? 🙏
|
…ibilities (fallbacks)
|
@spwoodcock Tested this with my Samsung Galaxy S20 and DJI RC2 controller. Sorry for the delay! I have some good news and bad news. Overall, I think this is positive in that the devices actually connect! There are probably just some small fixes needed to make it work, and maybe UI tweaks to make the experience smoother. Good newsThe app was able to detect and connect to the controller! Notes:1. Connecting to the device produced 3 notifications, including the error "High-power USB device connected"
2. I assumed that I needed to tap the "Charging" notification and switch it over to media transfer mode. When I tapped the notification, I discovered that the mode couldn't be changed, presumably because I first had to switch my phone to become the host. I tried to switch control over to my phone, but that failed with the message "Couldn't switch". But messing with these settings was unnecessary.
3. I had to tap the circular refresh arrow in the app to make the controller show up. (I didn't know I had to do this, which is why I went hunting for USB settings to change. But once I did, the controller was detected.) Then I tapped the Connect button, granted permission, and it connected!
Bad newsThe folder detection seems weird, and I can't find the uploaded file on the controller. 1. The dates on the detected folders are off.
2. The app shows 4 folders, including two with strange names: "map_preview" and "capability".
3. On the controller, when I turn on waypoint mode and tap the little document/notepad icon, I see these two flight plans. After I tap "Transfer to Controller", the app shows a green checkmark of success! But this screen on the controller is unchanged; the existing flight plans haven't been replaced, and I don't see any new flight plans, even if I exit waypoint mode and come back. I tried replacing all 4 missions, and there is no visible effect on the controller.
Minor notes1. The text in the USB status box at the top is either grey on grey, orange on grey, or red on grey, all quite hard to read.2. When I tap the "Transfer to Controller" button, it is replaced by a success message, but I can't read it because it's taller and the screen hasn't scrolled.
3. Each time I attempt a transfer, the app resets to back to this beginning (disconnected) state, so I have to connect again and select my file again before I can attempt the transfer again.
4. When I disconnect the USB cable, the app doesn't notice; it still thinks it's connected. Then if I do anything, I get an error message in the top box.
|
|
Actually the behaviour is rather variable. I'm no longer sure that tapping the refresh arrow was what made the app detect the controller. Here's a screen recording to show some of the strange behaviour (turn sound on for narration). Screen_Recording_20260506_220643.mp4 |
|
This is so useful, thank you!! Really appreciate you spending the time 🙏 I'll do some follow up & try and test this for the Potensic too. Let's see if we can make it work |












What type of PR is this? (check all applicable)
Related Issue
Fixes #615
Fixes #769
Describe this PR
Test APK here:
dronetm-transfer.zip
AI Tool Usage
If AI-assisted:
Review Guide
build.shto reproduce the APK.Alternatives considered
plan.mdfile here has a good analysis of what might be going wrong for them.Checklist
[optional] What gif best describes this PR or how it makes you feel?