I am encountered with an error when trying to upload .lua files. They are being uploaded in a “scripts” folder under the APM. Initially there was a “scripts” folder not under the APM.(I am unsure of if this may be a factor.)
This is the resulting error message. When expanded, the details tab reveals this.
What may be causing this error, and how would I go about addressing it to get the .lua files to work in the given location?
Setup is using an Orange Cube and herelink, and has worked before.
Arducopter V4.1.5
Solved it by flashing Arduplane firmware on the cube to reset all params, then reflashed Arducopter 4.2.2 and now I don’t get any MavFTP errors anymore, I can upload scripts
Actually, problem appeared again when I flashed my old params on this fresh firmware. I did a “compare” params and now MavFTP is bugged again.
I will try to find which one causes the bug.
Edit : found it.
Parameter ADSB_TYPE , if set to 0, creates this bug.
You have to make sure that ADSB_TYPE is set to 1 in order to make MavFTP and Lua scripts working
I tried to re-create the issue using Copter-4.3.0-DEV (aka “latest”) and beta Mission Planner but was unable to. I suspect that we had an issue in MP a few months ago but it’s been fixed now.
Could you try updating MP? Go to MP’s Help screen and push the “Check for Updates” at the bottom. If possible post a screen shot of the MP version you’re using (this is displayed on the top left of the window).
I have an Orange Cube here as well that has the same issue with Arducopter 4.2.2
But it works after I reboot using the “Reboot” button on the “Compass” setup screen of Mission Planner.
Btw. can we have a reboot button in Mission Planner that’s more easily accessible?
I have the same problem sometimes with PX4 Arduplane v4.2.2 and MP 1.3.77 build 1.3.8110.38294.
I am disabling the “SCR_ENABLE”, i upload the script and then i enable the “SCR_ENABLE”.
Maybe it is not the right way but at least it works.
But i don’t have this problem all the time.