Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CRAC-Strat_2017 by
Diff: Robots/Strategie_big.cpp
- Revision:
- 7:dcce34c7e06e
- Parent:
- 4:88431b537477
- Child:
- 8:0edc7dfb7f7e
diff -r eddfa414fd11 -r dcce34c7e06e Robots/Strategie_big.cpp --- a/Robots/Strategie_big.cpp Mon Apr 25 10:59:22 2016 +0000 +++ b/Robots/Strategie_big.cpp Tue Apr 26 15:30:54 2016 +0000 @@ -17,7 +17,9 @@ /****************************************************************************************/ unsigned char doAction(unsigned char id, unsigned short speed, short angle) { switch(id) { + case 101: + break; default: return 0;//L'action n'existe pas, il faut utiliser le CAN @@ -31,7 +33,17 @@ /* DESCRIPTION : initialiser le robot */ /****************************************************************************************/ void initRobot(void) { - + AX12_register(1,AX12_SERIAL1); + AX12_register(2,AX12_SERIAL1); + AX12_register(3,AX12_SERIAL1); + AX12_register(4,AX12_SERIAL1); + AX12_register(5,AX12_SERIAL1); + AX12_register(6,AX12_SERIAL1); + AX12_register(7,AX12_SERIAL1); + AX12_register(8,AX12_SERIAL1); + AX12_register(9,AX12_SERIAL1); + AX12_register(11,AX12_SERIAL1); + AX12_register(13,AX12_SERIAL1); } /****************************************************************************************/