Nespresso RGB Sensor / Mbed 2 deprecated EnvoyNespressoEndpointColorDetectorV2

Dependencies:   ColorDetectorV2 ExternalFlashClient SNICInterface mbed-rtos mbed nsdl

Fork of EnvoyNespressoEndpoint by Nespresso RGB Sensor

Files at this revision

API Documentation at this revision

Comitter:
bridadan
Date:
Tue Jun 02 22:20:02 2015 +0000
Parent:
6:9e3f6270fcb0
Child:
8:7ba790de76bf
Commit message:
Updated endpoint to use new ColorDetector version

Changed in this revision

ColorDetector.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
--- a/ColorDetector.lib	Tue May 19 19:17:41 2015 +0000
+++ b/ColorDetector.lib	Tue Jun 02 22:20:02 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Nespresso-RGB-Sensor/code/ColorDetector/#a6d6f8f41266
+http://developer.mbed.org/teams/Nespresso-RGB-Sensor/code/ColorDetector/#710031221b4d
--- a/main.cpp	Tue May 19 19:17:41 2015 +0000
+++ b/main.cpp	Tue Jun 02 22:20:02 2015 +0000
@@ -5,6 +5,7 @@
 #include "GroveColourSensor.h"
 #include "ColorDetector.h"
 #include "color_detector.h"
+#include <cmath>
 
 Serial pc(USBTX, USBRX); // tx, rx
 
@@ -132,7 +133,7 @@
     colorSensor.setBlockRead();
     
     // Create color detector
-    ColorDetector detector(&colorSensor, 70, 64);
+    ColorDetector detector(&colorSensor, 45, 10, 3, 256);
     detector.setBaseline();
     
     // Pass reference to color detector
--- a/mbed-rtos.lib	Tue May 19 19:17:41 2015 +0000
+++ b/mbed-rtos.lib	Tue Jun 02 22:20:02 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#83895f30f8f2
+http://mbed.org/users/mbed_official/code/mbed-rtos/#2db19f47c2ba