Psi Swarm robot library version 0.9

Dependents:   PsiSwarm_V9_Blank

Fork of PsiSwarmV9 by James Hilder

Revision:
17:bf614e28668f
Parent:
16:50686c07ad07
Child:
18:9204f74069b4
--- a/colour.h	Thu Jun 01 23:02:32 2017 +0000
+++ b/colour.h	Sun Jun 04 13:11:09 2017 +0000
@@ -29,16 +29,6 @@
 #define CONTROL                 0x0F
 #define CDATA                   0x14
 
-#define CS_C_BLACK   63
-#define CS_C_WHITE   802
-#define CS_R_BLACK   22
-#define CS_R_WHITE   244
-#define CS_G_BLACK   24
-#define CS_G_WHITE   297
-#define CS_B_BLACK   16
-#define CS_B_WHITE   232
-
-
 /**
  *  The Colour class contains the functions for reading the base-mounted and top-mounted I2C colour sensors (optional).
  *
@@ -66,6 +56,11 @@
     */
     void colour_sensor_init();
 
+    /** Set the white\black calibration values for the colour sensor
+    *
+    */    
+    void set_calibration_values(int c_black,int r_black,int g_black,int b_black,int c_white,int r_white,int g_white,int b_white);
+
     /** Set the gain of the base colour sensor
     *
     * @param gain The gain value for the sensor