From 69524fe01e670173df53771d65c7955c2461fac9 Mon Sep 17 00:00:00 2001 From: Samuel Date: Thu, 4 May 2023 21:44:19 +0200 Subject: [PATCH] Ajout affichage distance dans le test des capteurs --- Test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Test.c b/Test.c index 48274e9..6b0864f 100644 --- a/Test.c +++ b/Test.c @@ -1410,8 +1410,10 @@ int test_geometrie(){ } void affiche_monitoring(){ + float distance; while(1){ temps_cycle_display(); + printf(">distance:%f\n",Trajet_get_obstacle_mm()); sleep_ms(100); } } @@ -1435,6 +1437,7 @@ int test_angle_balise(void){ Balise_VL53L1X_gestion(); distance = Balise_VL53L1X_get_distance_obstacle_mm(angle); + Trajet_set_obstacle_mm(distance); lettre = getchar_timeout_us(0); }while(1);