calibration code

Dependencies:   Motor mbed

Revision:
0:fa52d9ab56ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Feb 19 14:29:52 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "Motor.h"
+Serial pc(USBTX,USBRX);//allows communication through the USB
+AnalogIn range(p19);
+Motor m(p26, p29, p30);
+float rv;
+int main()
+{
+    m.speed(0);
+    pc.baud(9600);
+    pc.format(7,SerialBase::None,1);
+    while(1) {
+        rv=range;
+        pc.printf("%f\n",rv);
+        
+    }
+}