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:
- 7:9eb4edae11c9
- Parent:
- 3:15f75374bff5
- Child:
- 8:c2569e1c34d7
--- a/main.cpp Thu Sep 07 00:41:04 2017 +0000
+++ b/main.cpp Thu Sep 07 00:42:39 2017 +0000
@@ -17,9 +17,9 @@
float x, y, t;
while(1) {
beta->set();
- x = beta->read(0);
- y = beta->read(1);
- t = beta->read(2);
+ x = beta->read(0) / 128;
+ y = beta->read(1) / 128;
+ t = beta->read(2) / 128;
Omni.Drive(x, y, t);
}
}
\ No newline at end of file