Psi Swarm robot library version 0.9

Dependents:   PsiSwarm_V9_Blank

Fork of PsiSwarmV9 by James Hilder

Revision:
18:9204f74069b4
Parent:
17:bf614e28668f
Child:
20:2b6ebe60929d
--- a/sensors.cpp	Sun Jun 04 13:11:09 2017 +0000
+++ b/sensors.cpp	Sun Jun 04 20:22:41 2017 +0000
@@ -723,7 +723,7 @@
         if(test_colour_sensor == 1) {
             wait(0.5);
             pc.printf("- Updating bass colour sensor values\n");
-            eprom.IF_write_base_colour_calibration_values(white_colour,black_colour);
+            eprom.IF_write_base_colour_calibration_values(black_colour,white_colour);
         }
         wait(1.5);
     } else {
@@ -775,3 +775,10 @@
     cv_bir_b[3] = bir4b;
     cv_bir_b[4] = bir5b;
 }
+char cv_description[105];
+const char * Sensors::IF_get_base_calibration_values_string()
+{
+    
+    sprintf(cv_description,"[BLACK 1:%4d 2:%4d 3:%4d 4:%4d 5:%4d WHITE 1:%4d 2:%4d 3:%4d 4:%4d 5:%4d]",cv_bir_b[0],cv_bir_b[1],cv_bir_b[2],cv_bir_b[3],cv_bir_b[4],cv_bir_w[0],cv_bir_w[1],cv_bir_w[2],cv_bir_w[3],cv_bir_w[4]);
+    return cv_description;
+}
\ No newline at end of file