![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pixy info2
Dependencies: CMPS03 SRF05 mbed pixy
Fork of 0000Non_stop_code_v3 by
Diff: fct.cpp
- Revision:
- 2:48f7e5f79caa
- Parent:
- 0:a8cee96c9250
--- a/fct.cpp Sat Jun 10 07:20:21 2017 +0000 +++ b/fct.cpp Thu Jun 22 09:32:24 2017 +0000 @@ -22,14 +22,14 @@ } void lecture_blanc(void) { - if(C1.read()>0.5) { + if(C1.read()>0.8) { captL1=0; - } else { + } else if(C1.read()<0.2) { captL1=1; } - if(C3.read()>0.5) { + if(C3.read()>0.8) { captL3=0; - } else { + } else if(C3.read()<0.2) { captL3=1; } } @@ -37,6 +37,8 @@ void lecture_us(void) { us_arriere=us_arr.read(); + us_gauche=us_g.read(); + us_droit=us_d.read(); } void init(void)