Comments (7)
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.
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.
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.
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.
For better availability via search engines, this problem is not exclusive to speed or current, no can-cmd commands work in 6.02, and the REPL replies with >t to any such command.
from bldc.
I was able to finally try it myself after building a dual g30 scooter, but seems can-cmd is still not working as expected. My front (secondary vesc) is not being limited by the commands, very odd.
I will report further testing when I'm back home.
from bldc.
This is strange, maybe it got broken again? For me it definately works.
;;;Function to set config parameter to local and all specified vescs
(defun set-param (param value can_slave_id_list)
(progn
(conf-set param value)
(loopforeach i can_slave_id_list
(can-cmd i (str-merge "(conf-set " "'" (sym2str param) " " (str-from-n value) ")"))
)
)
)
This was working on the 6.05 from April, the syntaxis looks the same to yours.
from bldc.
Yes it works, I have been using it for a while now. I forgot to reply here.
from bldc.
Related Issues (20)
- [LispBM] Shutdown event issues HOT 6
- Feature request: Redundant analog signals for throttle and brake
- Feature Request: Disable Field Weakening at compile HOT 2
- Current control tuning HOT 1
- make qt_install failed
- Adding MakerX hardware HOT 1
- Lisp app-adc-override wrong values HOT 16
- TCP connection for VESC tools is unavailable when uart connection is established with Lisp
- Unexpected sensor port voltage on VESC 6 75V HOT 1
- Traction control on dissimilar motors. HOT 2
- CAN bus spamming
- Suport UART commands VS LispBM commands HOT 2
- Bug in release 6.02, in COMM_GET_IMU_DATA command handler, controller_id is never sent
- I ran into an error using make qt_install in Windos_PowerShell
- I ran into an error using make qt_install in Windos_PowerShell
- I ran into an error using make qt_install in Windos_PowerShell
- I ran into an error using make qt_install in Windos_PowerShell
- Support for bipolar BLDC motors?
- Feature request: updating c_libs interface header HOT 3
- Reverse Driving - Negative Duty Cycle Problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bldc.