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.
Fork of SAILORSbot by
Diff: main.cpp
- Revision:
- 2:483c2e492a36
- Parent:
- 1:a7aab5937375
- Child:
- 3:47cd6b9e4dbb
diff -r a7aab5937375 -r 483c2e492a36 main.cpp
--- a/main.cpp Sun Jun 28 08:43:51 2015 +0000
+++ b/main.cpp Mon Jul 20 20:19:47 2015 -0700
@@ -1,8 +1,6 @@
#include "robot.h"
#include <sstream>
-// std::stringstream command;
-
volatile double leftspeed;
volatile double rightspeed;
@@ -14,10 +12,8 @@
/*
parses a single command from the stream
*/
-// int parse_command(std::stringstream & cmd)
int parse_command(const char* cmd)
{
- //xbee.printf("%s\n", cmd.str().c_str());
//xbee.printf("%s\n", cmd);
if(cmd[1]==':'){
if(cmd[0]=='l'){
