asser1

Dependencies:   mbed asser1

main.cpp

Committer:
GuillaumeCH
Date:
2019-04-17
Revision:
2:5764f89a27f6
Parent:
1:0690cf83f060
Child:
3:1dba6eca01ad

File content as of revision 2:5764f89a27f6:

#include "mbed.h"

#include "hardware.h"
#include "odometrie.h"
#include "reglages.h"
#include "commande_moteurs.h"

int main()
{
    //init
    init_odometrie();
    init_hardware();
    srand(time(NULL));
    motors_on();
    //Pause pour sauver le robot et l'ordi
    wait(3);
    //ligne_droite(150000);
    //commande_vitesse(500,500);
    /*for(int j = 0; j<5;j++){
        for (int i =0; i< 4;i++){
            ligne_droite(50000);            
            test_rotation_rel(90);
        }
        wait(1);
    }*/
    reculer_un_peu(50000);
    /*for (int i = 0; i< 10; i++){
        test_rotation_rel(180);
    }*/
    return 0;
}