Giter VIP home page Giter VIP logo

Comments (6)

ketanatzebu avatar ketanatzebu commented on June 9, 2024 1

Update: If I use CANFD at 1Mbps. I am getting continuous stream. The issue comes at 5Mbps.

from ardupilot.

IamPete1 avatar IamPete1 commented on June 9, 2024

How are you determining that it hangs? Just that the received count stops increasing? Does it always stop after the same count? It would be useful if you could also upload the script.

from ardupilot.

IamPete1 avatar IamPete1 commented on June 9, 2024

I ran luacheck on your script, it finds a few issues:

    scripts/CAN test.lua:2:7: unused variable update_rate_ms
    scripts/CAN test.lua:10:7: unused variable get_xy
    scripts/CAN test.lua:11:1: setting read-only global variable type
    scripts/CAN test.lua:41:16: unused function pow2
    scripts/CAN test.lua:58:21: accessing undefined field ldexp of global math
    scripts/CAN test.lua:94:10: setting read-only global variable type

It would be useful to double check the script is still running. Can you enable disarmed logging and set SCR_DEBUG_OPTS bit 3 (value 8) for "log runtime memory usage and execution time".

from ardupilot.

rmackay9 avatar rmackay9 commented on June 9, 2024

Hi @ketanatzebu,

I'm not too familiar with this area of the code but I guess you tried modifying the CAN_P1_FDBITRATE parameters and it didn't help?

from ardupilot.

rmackay9 avatar rmackay9 commented on June 9, 2024

.. anyway, I guess this is resolved so I'm going to go ahead and close this issue if that's OK. I've ping'd other developers to get their input on whether we should support 5Mbps or not.

from ardupilot.

ketanatzebu avatar ketanatzebu commented on June 9, 2024

Hi @ketanatzebu,

I'm not too familiar with this area of the code but I guess you tried modifying the CAN_P1_FDBITRATE parameters and it didn't help?

Yes, I configured my sensor for 1Mbps and changed the param CAN_P1_FDBITRATE to 1M.

from ardupilot.

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.