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
diff -r 000000000000 -r fa52d9ab56ee Motor.lib
--- /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
diff -r 000000000000 -r fa52d9ab56ee main.cpp
--- /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);
+        
+    }
+}
diff -r 000000000000 -r fa52d9ab56ee mbed.bld
--- /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