Giter VIP home page Giter VIP logo

Comments (4)

vedderb avatar vedderb commented on June 30, 2024 1

I had a look and there was indeed a bug in can-cmd. The fix is pushed, should be in the next beta.

from bldc.

1zun4secondary avatar 1zun4secondary commented on June 30, 2024

I have now done a small test with a user with following test script:

(define slave-can 103)
(define drive-speed (/ 45 3.6))
(define drive-current 0.9)
(define drive-watts 750)

(defun configure-speed(speed watts current)
    (progn
        (conf-set 'max-speed speed)
        (conf-set 'l-watt-max watts)
        (conf-set 'l-current-max-scale current)
        (can-cmd slave-can (str-merge "(conf-set 'max-speed " (str-from-n speed) ")"))
        (can-cmd slave-can (str-merge "(conf-set 'l-watt-max " (str-from-n watts) ")"))
        (can-cmd slave-can (str-merge "(conf-set 'l-current-max-scale " (str-from-n current) ")"))
    )
)

(configure-speed drive-speed drive-watts drive-current)

and it appears it really does not function correctly.
grafik
grafik

It also seems that no errors are appearing. I cannot tell if it's possible to see errors caused by can-cmd on the slave ESC.

from bldc.

1zun4secondary avatar 1zun4secondary commented on June 30, 2024

There are no changes to the can-cmd command since it was added, so I guess it's a configuration issue on the user side?
Side note: (canset-current-rel slave-can throttle) does work. So CAN is working but only can-cmd not.

from bldc.

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.