assert1
Dependencies: mbed X_NUCLEO_IHM02A1
main.cpp
- Committer:
- JimmyAREM
- Date:
- 2019-03-30
- Revision:
- 3:06cbe2f6c494
- Parent:
- 2:977799d72329
File content as of revision 3:06cbe2f6c494:
#include "mbed.h"
#include "hardware.h"
#include "odometrie.h"
#include "reglages.h"
#include "tests_moteurs.h"
#include "chemin.h"
int main()
{
//init
printf("I'm waking up...\n");
init_odometrie();
init_hardware();
printf("I'm waked up after init...\n");
printf("tirette passee\n");
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);
/*while(1)
{
for (int i =0; i<4; i++)
{
test_ligne_droite(30000,500);
test_rotation_rel(90,100);
}
test_rotation_abs(0,100);
for (int i =0; i<4; i++)
{
test_ligne_droite(150000, 600);
test_rotation_rel(180,100);
}
test_rotation_abs(0,100);
}*/
//init_terrain();
//afficher_terrain();
//aller_a_point(20,180,270,180);
//aller_a_point(270,180,20,180);
//test_rotation_rel(180,100);
return 0;
}