calibration code

Dependencies:   Motor mbed

Files at this revision

API Documentation at this revision

Comitter:
Ty
Date:
Thu Feb 19 14:29:52 2015 +0000
Commit message:
here it is

Changed in this revision

Motor.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.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.lib	Thu Feb 19 14:29:52 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/Motor/#f265e441bcd9
--- /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);
+        
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Feb 19 14:29:52 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file