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