Programme carte strategie (disco)
Dependencies: mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Diff: Robots/Strategie_small.cpp
- Revision:
- 52:a47350923b5e
- Parent:
- 50:a5361ffeefc8
- Child:
- 53:e96acb11a51f
--- a/Robots/Strategie_small.cpp Sat May 18 16:54:06 2019 +0000 +++ b/Robots/Strategie_small.cpp Tue May 21 14:38:09 2019 +0000 @@ -68,6 +68,23 @@ case 113: //sol arriere relache SendRawId(SOL_ARRIERE_RELACHE); break; + case 114: + SendRawId(AVANT_RELACHE); + break; + + case 115: + SendRawId(ARRIERE_RELACHE); + break; + + case 116: + unsigned char arg_tempo=(unsigned char)arg1; + SendMsgCan(HACHEUR_RELEASE_ATOM, &arg_tempo,1); + waitingAckFrom = 0; + waitingAckID =0; + break; + case 117: + SendRawId(RECROQUEVILLER); + break; case 150: SCORE_PR+=arg1; @@ -104,7 +121,7 @@ break; case 22://Changer la vitesse du robot - // SendSpeed(arg1,(unsigned short)arg2); + // SendSpeed(arg1,(unsigned short)arg2); wait_us(200); waitingAckFrom = 0; waitingAckID = 0;