svoe
Dependencies: mbed mbed-STM32F103C8T6 MPU6050_1
Diff: echo.h
- Branch:
- svoe
- Revision:
- 22:14e85f2068c7
- Parent:
- 19:2fe650d29823
- Child:
- 23:bc05a104be10
diff -r 578efa8f7c37 -r 14e85f2068c7 echo.h --- a/echo.h Sat Mar 23 16:39:46 2019 +0000 +++ b/echo.h Tue Jul 23 12:55:23 2019 +0000 @@ -2,6 +2,7 @@ int obstacle_echo[100];//13 steps [-90;+90] by 15 deg int obstacle[100];//13 steps [-90;+90] by 15 deg int corrected_obstacle [100]; +int gabarit_obstacle [100]; int echo_current_step;//[0;36], (step=18) => 0 deg int echo_old_step; int echo_old_old_step; @@ -42,7 +43,7 @@ void echo_transmit(int steps_number) { //printf is not recommended for interrupts int tmstep; wifi.putc(0xff); //sync symbol - for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle_glaz[tmstep] < 500) ? obstacle_glaz[tmstep]/2 : 250);} + for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((gabarit_obstacle[tmstep] < 500) ? gabarit_obstacle[tmstep]/2 : 250);} //for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle_echo[tmstep] < 500) ? obstacle_echo[tmstep]/2 : 250);} //for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle[tmstep] < 500) ? obstacle[tmstep]/2 : 250);} for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((corrected_obstacle[tmstep] < 500) ? corrected_obstacle[tmstep]/2 : 250);}