Giter VIP home page Giter VIP logo

Comments (6)

meee1 avatar meee1 commented on July 23, 2024

I used to do this. The issue is large files where taking to long to CRC, causing other issues

There would need to be a limit on the max size that's crc'd

from missionplanner.

IamPete1 avatar IamPete1 commented on July 23, 2024

I guess we could add to the FTP protocol a "check CRC is x" so you would send the expected CRC and then leave the flight controller to deal with what to do if its wrong.

This all came about because of a report of scripts getting corrupted on upload . Its certainly not a common issue. https://discord.com/channels/674039678562861068/719466647710072832/1215451314700550144

I wonder if there was a bug that has now been fixed or something like that.

from missionplanner.

hunter-hall avatar hunter-hall commented on July 23, 2024

Here is a tlog that should contain the crc error I was getting: https://drive.google.com/file/d/16BGuqd8N30H53Prg8PadIq1kyhnfnpw7/view?usp=sharing

Edit: Here are two more tlogs that are smaller in size with the same errors as the first tlog I posted above: https://drive.google.com/drive/folders/1pITjT7hwX8_a7NZpv9sovi_QU7MQGNxW?usp=sharing

from missionplanner.

hunter-hall avatar hunter-hall commented on July 23, 2024

Update: Upon rolling back to plane v4.4.4 (with my modified lua bindings description file), it works perfectly fine and this error does not exist.

from missionplanner.

tridge avatar tridge commented on July 23, 2024

@hunter-hall i've tested uploading the plane_aerobatics.lua both with MAVProxy and MissionPlanner 1.3.81 on a Pixhawk6X on USB with no errors after 5 uploads

from missionplanner.

hunter-hall avatar hunter-hall commented on July 23, 2024

@tridge Yeah, I'm not surprised you haven't seen this error... it seems weirdly non-deterministic. I'm sure it actually is indeed deterministic, but it only happens sometimes to me (even though I am uploading the same scripts every time). I'm thinking it might have something to do with the total number of kb of all the scripts combined... it seems to happen more often when I upload one or two large scripts vs one or two small ones (large being 4+ kb). However, it still happens sometimes when I upload 3-6 scripts that are all 1-2 kb in size. Again, I've only experienced this error in the plane 4.5.0-beta2 and the 4.6.0 dev build. The beta build was installed directly via Mission Planner and I tried a few different dev builds: one of the dev builds was my own (where I only changed one line in the lua binding descriptions file) and the others have been from builds I've done on this site: https://custom.ardupilot.org/

Also, once I do get the CRC error, my scripts will throw "syntax errors" and "unexpected symbol" errors in different lines every time I restart the board or restart scripting (even though the scripts themselves haven't changed). Eventually, I'll be able to get a good bootup/scripting restart and they work without issue, but it can take a dozen or more restarts before that happens.

This is all documented on this message (and below this message in the channel): https://discord.com/channels/674039678562861068/719466647710072832/1215451314700550144

As well as on this message (and below this message on this other channel): https://discord.com/channels/674039678562861068/797952826847920128/1217205074351095899

Edit: Also, this happens to me regardless of if I'm uploading scripts via USB, via telem radio, or via the SD card itself. This happened on two separate Pixhawk6Xs with two different SD cards and different telem radios and different USB cables.

Edit 2: Okay, I just put a new build on the board that has your crc32.py commit that you added a few hours ago on it. I haven't seen the same CRC error I was getting before (seen here: https://discord.com/channels/674039678562861068/719466647710072832/1216778004290732072) get thrown, however I am still getting all of the Lua behaviors as I was getting before as if the CRC error was thrown (i.e. seemingly random "syntax" errors and "unexpected symbol" errors that change every time I restart the board, even though the scripts themselves have not changed).

from missionplanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.