v2019
Dependencies: CRAC-Strat_2019 SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Dependents: Codeprincipal_2019 CRAC-Strat_2019
Diff: Robots/Strategie_big.cpp
- Revision:
- 7:dcce34c7e06e
- Parent:
- 4:88431b537477
- Child:
- 8:0edc7dfb7f7e
--- 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); } /****************************************************************************************/