![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
mit pathdingsbums
Dependencies: mbed
Fork of MicroMouse_MASTER_TWO by
Diff: KontrastSensor.cpp
- Revision:
- 7:5ef09519a6e9
- Parent:
- 6:a09d2ee3b82e
--- a/KontrastSensor.cpp Wed Apr 25 12:49:48 2018 +0000 +++ b/KontrastSensor.cpp Mon May 07 18:52:04 2018 +0000 @@ -18,10 +18,10 @@ { - float k = kontrast*3300; //sodass in Range bis 3300mV - printf("%.0f\n\r", k); + float k = kontrast*3300.0f; //sodass in Range bis 3300mV + //printf("%.0f\n\r", k); - if(k >1300){ + if(k >2500.0f){ blackLine = 1; } //else{//Auschalten im Betrieb (nur zur Kontrolle)