Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 13:bed77b03701d
- Parent:
- 12:594a1b936f4b
- Child:
- 14:e1e393537fb6
--- a/main.cpp Thu Jun 06 12:04:13 2019 +0000 +++ b/main.cpp Thu Jun 06 12:19:16 2019 +0000 @@ -2,8 +2,8 @@ #include <math.h> // Définition des ports séries -Serial pc(USBTX, USBRX, 115200); -//Serial pc(PC_10, PC_11, 115200); +//Serial pc(USBTX, USBRX, 115200); +Serial pc(PC_10, PC_11, 115200); Serial lidar(PC_6, PC_7, 115200); // Définition des variables globales @@ -41,6 +41,17 @@ uint8_t liste_fictifs[360]; for(i=0; i<360; i++) list_lidar[i]=list_lidar_var[i]; + //pour les essais + //for(i=0; i<360; i++) + // list_lidar[i]=00; + + //list_lidar[0]=100; + //list_lidar[90]=20.0; + //list_lidar[270]=100.0; + //list_lidar[45]=20.0; + //list_lidar[315]=100; + /////////////////// + direction[0] = 1; direction[1] = 0; @@ -196,7 +207,7 @@ } - if(1) { + if(0) { if(tableau_en_cours == 0) afficher_lidar(tableau_distance1); else afficher_lidar(tableau_distance0);