Programme d'utilisation des AX12 et de l'MX12 V3. 0C = action de l'MX12. (data0) 0 | 1 | 2 = position & sens de rotation
Dependencies: MX12
Fork of Utilisatio_MX12_V3 by
Revision 4:0972025782f3, committed 2017-05-20
- Comitter:
- R66Y
- Date:
- Sat May 20 16:16:00 2017 +0000
- Parent:
- 3:1bb26049bdd1
- Child:
- 5:bb953eda06e7
- Commit message:
- Programme d'utilisation des AX et de l'MX12 V3
Changed in this revision
Actionneur.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Actionneur.cpp Sat May 20 15:23:58 2017 +0000 +++ b/Actionneur.cpp Sat May 20 16:16:00 2017 +0000 @@ -330,7 +330,7 @@ /* DESCRIPTION : Fonction qui place les bras en position verticale */ /****************************************************************************************/ void Initialisation_position(unsigned char choix){ - un_myMX12->Set_Secure_Goal(600); // Initialise la position de l'MX12 à 180° + TrappeLanceur->Set_Secure_Goal(600); // Initialise la position de l'MX12 à 180° if (choix == 1){ multiple_myAX12->multiple_goal_and_speed(4,TAB1); wait(TIME); @@ -477,15 +477,18 @@ void bouger_MX12(unsigned char choix){ if( choix == 1) // Tourne à droite { - un_myMX12->Set_Secure_Goal(0); // tourner droite + TrappeLanceur->Set_Secure_Goal(0); // tourner droite + wait(TIME); } else if(choix == 2) // Tourne à gauche { - un_myMX12->Set_Secure_Goal(1200); // tourner gauche + TrappeLanceur->Set_Secure_Goal(1200); // tourner gauche + wait(TIME); } else if (choix == 0) { - un_myMX12->Set_Secure_Goal(600); // position initiale + TrappeLanceur->Set_Secure_Goal(600); // position initiale + wait(TIME); } }