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:
- 21:18b585a44155
- Parent:
- 20:f0ca65974329
- Child:
- 22:dae192ffca90
--- a/main.cpp Mon Jul 27 21:57:37 2015 +0000
+++ b/main.cpp Mon Jul 27 22:43:24 2015 +0000
@@ -102,7 +102,7 @@
// mode
}else if(cmd[0]=='c'){
mode = atoi(&cmd[2]);
- xbee.printf("mode set to %d\n", mode);
+ // xbee.printf("mode set to %d\n", mode);
// gains
}else if(cmd[0]=='g'){
if(cmd[2]=='p'){
@@ -153,7 +153,7 @@
led1 = 1;
pi.sensor_reading(sensors);
int* s = sensors; // just to make the next line more compact
- xbee.printf("s:%i,%i,%i,%i,%i\n", s[0], s[1], s[2], s[3], s[4]);
+ //xbee.printf("s:%i,%i,%i,%i,%i\n", s[0], s[1], s[2], s[3], s[4]);
xbee.printf("p:%f\n", pi.line_position());
xbee.printf("m:%d\n", mode);
led1 = 0;
@@ -181,7 +181,7 @@
mode = MANUAL_MODE;
communication.attach(&communicate, 0.1);
- controls.attach(&control, 0.05);
+ controls.attach(&control, 0.02);
while(1){
led3 = mode;
