elevator
/
elevator_lab
calibration code
Revision 0:fa52d9ab56ee, committed 2015-02-19
- Comitter:
- Ty
- Date:
- Thu Feb 19 14:29:52 2015 +0000
- Commit message:
- here it is
Changed in this revision
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