Coder Social home page Coder Social logo

Comments (3)

jra-skov-dk avatar jra-skov-dk commented on August 22, 2024

Just did a test:

Changing from this:
var.default = int(eds.get(section, "DefaultValue"), 0)
to this:
var.default = int(eds.get(section, "DefaultValue").replace('$NODEID+',''), 0)

fixes everything for me, all other DefaultValues stay the same but COB-ID is loaded correctly now.
I will make a pull request and you can evaluate if this has unintended side effects.

from canopen.

christiansandberg avatar christiansandberg commented on August 22, 2024

This is a known limitation (see #1). $NODEID should be replaced with the actual node ID and then evaluated. So if the node ID is 6, $NODEID+0x300 should be 0x306. I prepared for this by feeding the node_id to import_eds(). Could you try to implement that instead?

from canopen.

jra-skov-dk avatar jra-skov-dk commented on August 22, 2024

Ok, I see what you mean.

I will implement that instead. (lets continue the talk in #50)

from canopen.

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.