Basic motor code

Dependencies:   Motordriver mbed HALLFX_ENCODER Servo

Revision:
0:191d0be60c80
Child:
1:560118dc2f99
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Apr 18 17:11:55 2018 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "motordriver.h"
+ 
+Motor right(p23,p5,p6, 1); // pwm, fwd, rev
+Motor left(p21, p7, p8, 1); // pwm, fwd, rev
+
+//void forward(int distance) {
+//
+//}
+//
+//void reverse(int distance) {
+//
+//}
+
+int main() {
+    right.speed(0.15);
+    left.speed(0.15);
+    wait(5);
+    right.speed(0.0);
+    left.speed(0.0);
+}
\ No newline at end of file