tianyun ma / Mbed 2 deprecated mecanum_4

Dependencies:   mbed

Revision:
0:b7d3adaffc0a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 07 06:57:22 2018 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+#include "mecanum_4.h"
+
+int main() {
+    mecanum_4 mecanum;
+
+//    mecanum.mv_x(100);
+//    wait(5);
+//    mecanum.mv_x(-100);
+//    wait(5);
+//    mecanum.mv_y(100);
+//    wait(5);
+//    mecanum.mv_y(-100);
+//    wait(5);
+//    mecanum.rotate(100);
+//    wait(5);
+//    mecanum.rotate(-100);
+//    wait(5);
+//    mecanum.r_ob(100);
+//    wait(5);
+//    mecanum.r_ob(-100);
+//    wait(5);
+//    mecanum.r_ob(100);
+//    wait(5);
+//    mecanum.i_ob(-100);
+//    wait(5);
+    mecanum.any_degree(45,5);
+    mecanum.any_degree(135,5);
+    mecanum.any_degree(180,5);
+    mecanum.any_degree(225,5);
+    mecanum.any_degree(315,5);
+}
+ 
\ No newline at end of file