Sets motor currents based on input motorvalue

Revision:
1:84cb991c4d28
Parent:
0:131a76b8848a
Child:
2:91ea2963629a
diff -r 131a76b8848a -r 84cb991c4d28 motorConfig.cpp
--- a/motorConfig.cpp	Tue Oct 17 09:51:50 2017 +0000
+++ b/motorConfig.cpp	Sun Oct 22 08:43:06 2017 +0000
@@ -46,6 +46,15 @@
                     ledG = 1;
                     ledB = 0;      
                     break;
+                case CALIBRATE:
+                    pwmPin.write(0.0);
+                    
+                    
+                    ledR = 1;
+                    ledG = 0;
+                    ledB = 0;
+                    
+                    break;
             }
     }