Trip reset is working as I implemanted two ways to reset trip simultaneously (EMF + MATT)
Switching units is working on my car
Just checked your code
Your code is completely undocumented, mine is fully documented
You have some errors in your code and / or missing conversions
Error:
It is 0, 6 not 1, 6
Missing:
Mine is also missing few frames for instrument panel.
Conclusion: no it is not your code. You are not alone to have some documents
( Reminder: You still use some of my code in your project )
Switching units is working on my car
Just checked your code
Your code is completely undocumented, mine is fully documented
You have some errors in your code and / or missing conversions
Error:
Code:
new_message.setInByteBitOnPosition(5, 6, message->getFromByteBitOnPosition(1, 6));
Missing:
Code:
bitWrite(canMsgSnd.data[5], 0, bitRead(canMsgRcv.data[5], 6)); // Rear left seatbelt
bitWrite(canMsgSnd.data[6], 7, bitRead(canMsgRcv.data[5], 5)); // Rear seatbelt left blinking
bitWrite(canMsgSnd.data[6], 6, bitRead(canMsgRcv.data[5], 2)); // Rear right seatbelt
bitWrite(canMsgSnd.data[6], 5, bitRead(canMsgRcv.data[5], 1)); // Rear right seatbelt blinking
bitWrite(canMsgSnd.data[6], 4, bitRead(canMsgRcv.data[5], 4)); // Rear middle seatbelt
bitWrite(canMsgSnd.data[6], 3, bitRead(canMsgRcv.data[5], 3)); // Rear middle seatbelt blinking
Mine is also missing few frames for instrument panel.
Conclusion: no it is not your code. You are not alone to have some documents
( Reminder: You still use some of my code in your project )