Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can forward example and change of value? #22

Open
ekptwtos opened this issue Apr 29, 2021 · 1 comment
Open

can forward example and change of value? #22

ekptwtos opened this issue Apr 29, 2021 · 1 comment

Comments

@ekptwtos
Copy link

ekptwtos commented Apr 29, 2021

Hello all and thanks for your work!

I have been trying to work out how the can forwarding is working but to no avail! Also, sniffing around the code trying to make the can forwarding work I have notices that in the base.py the _comm_forward_can is set to 33 whereas in the Vedder_BLDC_Commands.py this is 34.

For the testing, I have tried both of the above values and manually changing in base.py the cls.can_id = None to 1 - which is the id of the slave vesc and then just run a bare minimum script sending the rpm values.

In both cases, only the master led lights up and only the master motor is spinning.
I can verify that when manually changing the cls.can_id to something other than None, it goes into the
def pack(instance, header_only=None):
if header_only:
if instance.can_id is not None:

Shall I send the command from my script differently?
Current way:
ser.write(pyvesc.encode(SetRPM(7500)))
as in the example.

Are there any examples on how to actually can forward the messages?
Am i missing something?

Thank you very much for your time!

Best,

Mike

@akshay-sharma1995
Copy link

Hi @ekptwtos , were you able to find a solution to this issue. I am facing the same issue, and have tried the things that you mentioned.
Let me know if there is way to solve it.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants