You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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 thedef 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
The text was updated successfully, but these errors were encountered: