asser1

Dependencies:   mbed asser1

Committer:
Coconara
Date:
Wed Dec 12 20:03:07 2018 +0000
Revision:
1:0690cf83f060
Parent:
0:6ca63d45f0ee
Child:
2:5764f89a27f6
v1.01

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Coconara 0:6ca63d45f0ee 1 #include "mbed.h"
Coconara 0:6ca63d45f0ee 2
Coconara 0:6ca63d45f0ee 3 #include "hardware.h"
Coconara 0:6ca63d45f0ee 4 #include "odometrie.h"
Coconara 0:6ca63d45f0ee 5 #include "reglages.h"
Coconara 0:6ca63d45f0ee 6 #include "tests_moteurs.h"
Coconara 0:6ca63d45f0ee 7
Coconara 0:6ca63d45f0ee 8 int main()
Coconara 0:6ca63d45f0ee 9 {
Coconara 0:6ca63d45f0ee 10 //init
Coconara 0:6ca63d45f0ee 11 init_odometrie();
Coconara 0:6ca63d45f0ee 12 init_hardware();
Coconara 0:6ca63d45f0ee 13
Coconara 1:0690cf83f060 14
Coconara 1:0690cf83f060 15 wait(3);
Coconara 1:0690cf83f060 16
Coconara 1:0690cf83f060 17 test_ligne_droite(162000, 600);
Coconara 1:0690cf83f060 18 test_rotation_rel(90,100);
Coconara 1:0690cf83f060 19 test_ligne_droite(74000,300);
Coconara 1:0690cf83f060 20
Coconara 1:0690cf83f060 21 /*while(1)
Coconara 1:0690cf83f060 22 {
Coconara 1:0690cf83f060 23 for (int i =0; i<4; i++)
Coconara 1:0690cf83f060 24 {
Coconara 1:0690cf83f060 25 test_ligne_droite(30000,500);
Coconara 0:6ca63d45f0ee 26
Coconara 1:0690cf83f060 27 test_rotation_rel(90,100);
Coconara 1:0690cf83f060 28 }
Coconara 1:0690cf83f060 29 test_rotation_abs(0,100);
Coconara 1:0690cf83f060 30
Coconara 1:0690cf83f060 31 for (int i =0; i<4; i++)
Coconara 1:0690cf83f060 32 {
Coconara 1:0690cf83f060 33 test_ligne_droite(150000, 600);
Coconara 1:0690cf83f060 34 test_rotation_rel(180,100);
Coconara 1:0690cf83f060 35 }
Coconara 1:0690cf83f060 36 test_rotation_abs(0,100);
Coconara 1:0690cf83f060 37 }*/
Coconara 1:0690cf83f060 38
Coconara 0:6ca63d45f0ee 39
Coconara 0:6ca63d45f0ee 40 return 0;
Coconara 0:6ca63d45f0ee 41 }