![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Colour sensors calibrated
Dependencies: mbed-rtos mbed Servo QEI
Fork of ICRSEurobot13 by
Diff: Sensors/CakeSensor/CakeSensor.h
- Revision:
- 21:c592bf6a6a2d
- Parent:
- 9:960410a01e6b
diff -r 70d651156779 -r c592bf6a6a2d Sensors/CakeSensor/CakeSensor.h --- a/Sensors/CakeSensor/CakeSensor.h Tue Apr 09 15:33:36 2013 +0000 +++ b/Sensors/CakeSensor/CakeSensor.h Fri Apr 12 16:24:25 2013 +0000 @@ -16,6 +16,7 @@ //float d = 5.5/(Distance()-0.13); float d = 7.53/(Distance()-0.022); d = (d < 6 || d > 30)? -1:d; + return d; } };