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: USBHost USBHostXpad mbed-rtos mbed
Diff: Traxster.cpp
- Revision:
- 3:c1620db50a75
- Parent:
- 2:5e870c215495
- Child:
- 8:36b2ef26a0b1
diff -r 5e870c215495 -r c1620db50a75 Traxster.cpp
--- a/Traxster.cpp Sat Nov 15 21:42:16 2014 +0000
+++ b/Traxster.cpp Wed Nov 26 22:53:15 2014 +0000
@@ -1,6 +1,10 @@
#include "Traxster.h"
#include "utils.h"
+#include "rtos.h"
+
+//extern Serial pc;
+//extern Mutex m;
int getMotorSpeedInt(float f){
@@ -30,6 +34,9 @@
}
else
{
+ //m.lock();
+ //pc.printf("mogo 1:%d 2:%d\r\n", m1, m2);
+ //m.unlock();
rob.printf("mogo 1:%d 2:%d\r", m1, m2);
}
