3/19 23:30
Dependencies: mbed move4wheel2 EC CruizCore_R1370P
Diff: can/can.cpp
- Revision:
- 4:317c53a674fa
- Parent:
- 3:8a0faa3b08c3
- Child:
- 5:6cebe1c458a9
--- a/can/can.cpp Fri Mar 01 00:48:07 2019 +0000 +++ b/can/can.cpp Fri Mar 01 08:00:53 2019 +0000 @@ -30,20 +30,20 @@ //debug_printf("[0]=%d [1]=%d [2]=%d [3]=%d [4]=%d [5]=%d\n\r",id1_value[0],id1_value[1],id1_value[2],id1_value[3],id1_value[4],id1_value[5]); } - /*if(msg.id == 3) { + if(msg.id == 3) { usw_data1 = 0.1 * (short)((msg.data[0]<<8) | msg.data[1]); //debug_printf("usw_data1 = %f\n\r",usw_data1); - }*/ + } - /* if(msg.id == 4){ + if(msg.id == 4){ usw_data2 = 0.1 * (short)((msg.data[0]<<8) | msg.data[1]); //debug_printf("usw_data2 = %f\n\r",usw_data2); - }*/ + } - /* if(msg.id == 5){ + if(msg.id == 5){ usw_data3 = 0.1 * (short)((msg.data[0]<<8) | msg.data[1]); //debug_printf("usw_data3 = %f\n\r",usw_data3); - }*/ + } if(msg.id == 6) { usw_data4 = 0.1 * (short)((msg.data[0]<<8) | msg.data[1]);