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 Utilisatio_MX12_V2 by
Revision 4:0972025782f3, committed 2017-05-20
- Comitter:
- R66Y
- Date:
- Sat May 20 16:16:00 2017 +0000
- Parent:
- 3:1bb26049bdd1
- 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); } }