Biblio à utiliser pour communiquer avec la carte moteur
Dependents: Asserv_mot Asserv_mot
Diff: Asservissement.cpp
- Revision:
- 1:162aa6608ffe
- Parent:
- 0:3a1f19e51eb2
- Child:
- 2:dc3ec8d77b6a
diff -r 3a1f19e51eb2 -r 162aa6608ffe Asservissement.cpp --- a/Asservissement.cpp Fri Jun 10 22:40:33 2016 +0000 +++ b/Asservissement.cpp Wed Apr 19 17:41:35 2017 +0000 @@ -1,4 +1,5 @@ #include "Asservissement.h" +#include "My_ident.h" /*********************************************************************************************************/ /* FUNCTION NAME: SendRawId */ @@ -10,7 +11,7 @@ msgTx.id=id; msgTx.len=0; can1.write(msgTx); - wait_us(200); + //wait_us(200); } /*********************************************************************************************/ @@ -62,7 +63,7 @@ /* FUNCTION NAME: Rotate */ /* DESCRIPTION : Transmission CAN correspondant à une rotation */ /****************************************************************************************/ -void Rotate (signed short angle) + void Rotate (signed short angle) { CANMessage msgTx=CANMessage(); msgTx.id=ASSERVISSEMENT_ROTATION; // Tx rotation autour du centre du robot