assert1
Dependencies: mbed X_NUCLEO_IHM02A1
Diff: main.cpp
- Revision:
- 3:06cbe2f6c494
- Parent:
- 2:977799d72329
--- a/main.cpp Sat Feb 23 16:30:08 2019 +0000 +++ b/main.cpp Sat Mar 30 15:10:23 2019 +0000 @@ -13,17 +13,19 @@ init_odometrie(); init_hardware(); printf("I'm waked up after init...\n"); - while(tirette) ; while(!tirette) ; - while(tirette) ; - //wait(1); - printf("tirette passee\n"); - - - /*test_ligne_droite(150000, -100); - test_rotation_rel(180,50); - test_ligne_droite(150000,-100); - test_rotation_rel(180,50);*/ +while(1) +{ + while(tirette.read()==0) + { + } + set_PWM_moteur_G(300); + set_PWM_moteur_D(285); +} + // test_ligne_droite(150000, -100); + test_rotation_rel(90,50); + // test_ligne_droite(150000,-100); + // test_rotation_rel(90,50); //test_ligne_droite(20000,-100); //test_rotation_rel(-90,50); @@ -50,11 +52,11 @@ //afficher_terrain(); - aller_a_point(20,180,270,180); + //aller_a_point(20,180,270,180); - aller_a_point(270,180,20,180); + //aller_a_point(270,180,20,180); - test_rotation_rel(180,100); + //test_rotation_rel(180,100); return 0; }