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