Code Monkey home page Code Monkey logo

dronecan's People

Contributors

flybrianfly avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dronecan's Issues

spinOnce hangs when getting monotonic time

Hi, I've been trying out this library on a Teensy 4.0. I have a program that is using a lightly modified pub.ino example for interfacing with the CAN node. In my code, I wait for a serial input from another device, translate that data into a CAN message, then publish it with this library.

It all seems to work for a while, but eventually node->spinOnce fails to return and hangs the program. This always happens eventually, but how long it takes depends on how fast I'm running loop() in the main code, even though spinOnce is only called when I get a serial input, and that rate is constant.

I added a bunch of prints to find what is blocking. It is this line in uc_scheduler.cpp. It happens when this check always fails, so the loop runs forever.

I don't think I have the knowledge to debug further, but I'll have this test setup available for a while so I can help test if you're still supporting this library.

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.