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.
Dependencies: DataPool MD_PID mbed
Diff: main.cpp
- Revision:
- 0:b8fa7a019f5d
- Child:
- 2:cd4c1d0a4346
diff -r 000000000000 -r b8fa7a019f5d main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 25 05:10:49 2017 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+#include "2017_3_h.h"
+
+#include "GammaTransporter.h"
+#include "DataPool.h"
+
+Omni_3 Omni(PB_0, PB_4, PA_7, PA_2, PF_0, PA_11, PA_5, PA_6, PB_1, PB_5, PA_4, PA_3, 1);
+Serial pc(USBTX, USBRX);
+
+int main() {
+    DataPool *gamma;
+    
+    gamma = new GammaTransporter;
+    
+    Omni.Drive(0, 0, 0);
+    float x, y, t;
+    while(1) {
+        gamma->set();
+        x = gamma->read(0);
+        y = gamma->read(1);
+        t = gamma->read(2);
+        Omni.Drive(x, y, t);
+    }
+}
\ No newline at end of file