Skip to content

Commit 2cebff5

Browse files
committed
chores, adjustments
1 parent 3cacb83 commit 2cebff5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

smart-car/smart-car.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//#define DEBUG
22

3-
#define SENSOR_DELAY 10
3+
#define SENSOR_DELAY 2
44

55
#define MAX_QUIRKS 3
66

@@ -21,11 +21,11 @@
2121
#define ECHOL_PIN A4
2222
#define TRIGL_PIN A5
2323

24-
#define RPCT 90
24+
#define RPCT 100
2525
#define LPCT 100
2626

27-
const byte initSpd = 192; // speed to start on the first loop to gain acceleration
28-
const byte moveSpd = 128; // speed to continue after first loop passed and we gained initial acceleration
27+
const byte initSpd = 128; // speed to start on the first loop to gain acceleration
28+
const byte moveSpd = 72; // speed to continue after first loop passed and we gained initial acceleration
2929

3030
const int turnDist = 40; // distance in cm on which normal turn will be triggered to avoid collision
3131
const int spinDist = 15; // distance in cm on which obstacle is considered too close and radical spin or pulling back will be triggered

0 commit comments

Comments
 (0)