librairie actions petit robot carte esclave
Dependents: carte_esclave201_petit_rob carte_esclave2019 carte_esclave_PETIT_ROBOT_2019 ACRAC_carte_esclave_GROS_ROBOT_2019
Diff: actions_Pr.cpp
- Revision:
- 4:21ff54400895
- Parent:
- 3:cfd2b0d98c42
- Child:
- 5:37015374ef10
--- a/actions_Pr.cpp Thu May 23 17:14:45 2019 +0000 +++ b/actions_Pr.cpp Thu May 23 17:22:03 2019 +0000 @@ -32,7 +32,7 @@ char faccelerateur_avant=0,faccelerateur_arriere=0; -void gabarit_petit_robot(void) +void gabarit_robot(void) { uint8_t servos_av_gauche[4] = {RLED_ON, AV_EP_G, RLED_ON, AV_poigne_G}; @@ -134,7 +134,7 @@ positionControl_Mul_ensemble_complex(2,50,servos_av_gauche, pos_av_gauche,3); verification(); } -void balance_avant(char cote) +void balance_avant(void) { int speed=1; if(cote==0) { @@ -150,7 +150,7 @@ verification(); } } -void balance_arriere(char cote) +void balance_arriere(void) { int speed=1; if(cote==0) { @@ -281,7 +281,7 @@ } -void accelerateur_insertion_avant_gauche(char cote) +void accelerateur_insertion_avant_gauche(void) { if(cote==0) { uint8_t servos_av_gauche[4] = {RLED_ON, AV_EP_G, RLED_ON, AV_poigne_G}; @@ -295,7 +295,7 @@ verification(); } -void accelerateur_insertion_arriere_gauche(char cote) +void accelerateur_insertion_arriere_gauche(void) { if(cote==0) { uint8_t servos_ar_gauche[4] = {RLED_ON, AR_EP_G, RLED_ON, AR_poigne_G}; @@ -526,13 +526,13 @@ if(cote==0) { Rotate(200); wait(0.4); - balance_avant(cote); + balance_avant(); Rotate(-200); wait(0.4); } else { Rotate(-200); wait(0.4); - balance_avant(cote); + balance_avant(); Rotate(200); wait(0.4); } @@ -584,13 +584,13 @@ if(cote==0) { Rotate(200); wait(0.4); - balance_arriere(cote); + balance_arriere(); Rotate(-200); wait(0.4); } else { Rotate(-200); wait(0.4); - balance_arriere(cote); + balance_arriere(); Rotate(200); wait(0.4); }