Ajout affichage distance dans le test des capteurs

This commit is contained in:
Samuel 2023-05-04 21:44:19 +02:00
parent b06f1c631a
commit 69524fe01e

3
Test.c
View File

@ -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);