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 Utilisation_MX12 by
Revision 1:ac14e1422ab3, committed 2017-05-20
- Comitter:
- R66Y
- Date:
- Sat May 20 08:14:35 2017 +0000
- Parent:
- 0:80df663dd15e
- Commit message:
- programme de contr?le de l'MX12 (trappe d'ouverture du lanceur)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri May 19 14:32:14 2017 +0000 +++ b/main.cpp Sat May 20 08:14:35 2017 +0000 @@ -206,19 +206,17 @@ /* DESCRIPTION : Fonction qui sélectionne le sens de rotation de l'MX12 et le bouge */ /****************************************************************************************/ void bouger_MX12(unsigned char choix){ - AX12 *ptr_myAX12; - ptr_myAX12 = new AX12(p9, p10, 1,1000000); // Create objects if( choix == 1) // Tourne à droite { - ptr_myAX12->Set_Secure_Goal(0); // tourner droite + un_myMX12->Set_Secure_Goal(0); // tourner droite } else if(choix == 2) // Tourne à gauche { - ptr_myAX12->Set_Secure_Goal(1200); // tourner gauche + un_myMX12->Set_Secure_Goal(1200); // tourner gauche } else if (choix == 0) { - ptr_myAX12->Set_Secure_Goal(600); // position initiale + un_myMX12->Set_Secure_Goal(600); // position initiale } } @@ -252,7 +250,7 @@ case AX12_PREPARATION_PRISE : // Etat = 1 bouger_MX12(msgRxBuffer[FIFO_lecture].data[1]); - if (action == 0){ + if (action == 3){ Fin_action(); action ++; }