Hello,
I know it's an old thread but Id like to share sth and ask few questions.
First of all - the compilation problem is caused by variable declaration beign declared AFTER the function that depends on it.
Move the line "MCP_CAN CAN(10);" above the "void sendData(..." function declaration. The code will be compiled properly.
My question is: do I need to cut-off the 62kOhm resistor on my can shield? I've used above code, I've wrote my own and the tacho (fiat Panda) won't listen. My tacho is connected directly to can shield on my desk, not in car.
I know it's an old thread but Id like to share sth and ask few questions.
First of all - the compilation problem is caused by variable declaration beign declared AFTER the function that depends on it.
Move the line "MCP_CAN CAN(10);" above the "void sendData(..." function declaration. The code will be compiled properly.
My question is: do I need to cut-off the 62kOhm resistor on my can shield? I've used above code, I've wrote my own and the tacho (fiat Panda) won't listen. My tacho is connected directly to can shield on my desk, not in car.