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: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Diff: ShapeDetect.cpp
- Revision:
- 17:a5bb85ee205d
- Parent:
- 16:8bb212df81b7
- Child:
- 19:d4d967a885dc
diff -r 8bb212df81b7 -r a5bb85ee205d ShapeDetect.cpp
--- a/ShapeDetect.cpp Wed Apr 02 23:54:05 2014 +0000
+++ b/ShapeDetect.cpp Thu Apr 03 22:05:57 2014 +0000
@@ -34,7 +34,7 @@
void lrf_baudCalibration(void){
wait(2.5);
- //lrf.baud(115200);
+ lrf.baud(115200);
do {
lrf.putc('U');
pc.putc('.');
@@ -286,7 +286,7 @@
pc.printf("The area of the Mass is: %d\n\r", s_area_val);
//if( (s_area_val > (SQUARE_AREA - AREA_TOLERANCE)) && (s_area_val < (SQUARE_AREA + AREA_TOLERANCE)) ) {
- if( (s_area_val > 3500) ) {
+ if( (s_area_val > 3200) ) {
pc.printf("\nSQUARE DETECTECD\n\r");
return 1;
}