edog
Old thread but need to ask.
I pretty much understand what is going on in your firmware but cannot figure out the how to define the canbus IDs:
i.e. { 0x2510020, 80, 0, 0, xc90_2008my_ms_wheel_handler }, - i dont know what 80, 0, 0 means here and how to read for instance:
uint8_t angle = msg[6] & 0x3f;
uint8_t wheel = scale(angle, 0, 0x3f, 0, 100); - what msg[6] means (byte?).
In my car for instance I have this:
0x60D โ> 003618 00 41 7C 02 00
where 003618 > bit 22 "trunk open" and bit 23 "rear door open" - they can be either 0 or 1.
Any help would be appreciated. Thank you