Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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