carte esclave Petit Robot
Dependencies: mbed Herkulex_Library_2019 actions_Gr ident_crac actions_Pr
Diff: main.cpp
- Revision:
- 36:04c3ad41064d
- Parent:
- 32:e9947815c4d7
- Child:
- 38:9295a9721acb
diff -r 46dfabcd2d68 -r 04c3ad41064d main.cpp --- a/main.cpp Thu May 23 10:51:03 2019 +0000 +++ b/main.cpp Thu May 23 14:18:03 2019 +0000 @@ -128,6 +128,9 @@ case CHOICE_COLOR: cote = msgRxBuffer[FIFO_lecture].data[0]; + /*SendMsgCan(0x788, (unsigned char*)&cote, 1); + if(cote) printf("\nCote violet : %d",cote); + else printf("\nCote jaune : %d", cote);*/ break; case GLOBAL_GAME_END: @@ -292,7 +295,7 @@ SendAck(ACKNOWLEDGE_HERKULEX, ACK_FIN_ACTION); break; - case ACCELERATEUR_INSERTION_DERRIERE_GAUCHE : + case ACCELERATEUR_INSERTION_ARRIERE_GAUCHE : SendAck(ACKNOWLEDGE_HERKULEX, ACK_ACTION); accelerateur_insertion_arriere_gauche(); SendAck(ACKNOWLEDGE_HERKULEX, ACK_FIN_ACTION);