commaai/panda

panda library data cast issue

dkiiv opened this issue · 2 comments

dkiiv commented

Hi, I am getting some data cast issue's when trying to use the panda library

image

This error comes after i had fixed a previous error in the init.py file:
image
Changing "0x800" to "hex(0x800)" fixes that error, but the same cannot be said for the first error mentioned

I have tried the following:
word_4b = hex(int(address, 16) << 3) | extended << 2
and
word_4b = hex(int(address, 16)) << 3 | extended << 2

Neither work

dkiiv commented

Here is the script I am using the panda library in

https://github.com/actuallylemoncurd/pandaBench-tester/blob/master/canbusFeeder.py

You should be able to reproduce the issue by running this script on a comma 3

dkiiv commented

closed because this is a skill issue with my scripts, library is fine