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: camera mbed tsi_sensor
Fork of Car2 by
Diff: main.cpp
- Revision:
- 18:8dbd05e65211
- Parent:
- 17:846417c48571
- Child:
- 19:25f22034a3e2
diff -r 846417c48571 -r 8dbd05e65211 main.cpp --- a/main.cpp Fri Mar 31 19:31:34 2017 +0000 +++ b/main.cpp Sun Apr 02 23:04:56 2017 +0000 @@ -6,9 +6,9 @@ #define MIN_TURN_RATIO 0 #define MAX_TURN_RATIO 1 #define MIN_SPEED 0.15 -#define MAX_SPEED 0.4 +#define MAX_SPEED 0.5 #define TURN_TIME 0 -#define STRAIGHT_TIME 10 +#define STRAIGHT_TIME 15 #define DEFAULT_THRESHOLD 65 #define BLIND_LENGTH 30 #define DIFF_RATIO 0.5 @@ -122,7 +122,7 @@ DIR_L = 0; servo.period(0.020f); while(1){ - wait_ms(10); + wait_ms(5); cam.capture(); //display(cam.imageData); turnWheels(cam.imageData);