|
@@ -2,7 +2,7 @@
|
2
|
2
|
#line 1 "c:\\Users\\Carolin\\Downloads\\VSCode\\Zumo32U4\\Zumo32U4\\Hauptprojekt\\Hauptprojekt.ino"
|
3
|
3
|
#line 1 "c:\\Users\\Carolin\\Downloads\\VSCode\\Zumo32U4\\Zumo32U4\\Hauptprojekt\\Hauptprojekt.ino"
|
4
|
4
|
//Verfassser: Felix Stange, 4056379, MET2016
|
5
|
|
-//Datum: erstellt am 19.07.2017, zuletzt geändert am 06.02.2018
|
|
5
|
+//Datum: erstellt am 19.07.2017, zuletzt geändert am 15.02.2018
|
6
|
6
|
//Projektbeschreibung: Der Zumo fährt automatisch zwischen 2 Linien ohne diese zu überfahren mithilfe
|
7
|
7
|
//der Liniensensoren (3), ähnlich einer Spurhalteautomatik (heller Belag und dunkle Streifen).
|
8
|
8
|
//Außerdem werden Kollisionen verhindert durch Nutzung der vorderen Abstandssensoren. Kommt es
|
|
@@ -309,7 +309,7 @@ void Hindernisumfahren()
|
309
|
309
|
proxSensors.read();
|
310
|
310
|
proxValue[1] = proxSensors.countsFrontWithLeftLeds();
|
311
|
311
|
proxValue[2] = proxSensors.countsFrontWithRightLeds();
|
312
|
|
- if(proxValue[1] < 4 || proxValue[2] < 4)
|
|
312
|
+ if(proxValue[1] < 5 || proxValue[2] < 5)
|
313
|
313
|
{
|
314
|
314
|
//Schritt 2: Hindernis passieren
|
315
|
315
|
motors.setSpeeds(maxSpeed, maxSpeed);
|