From 8e7836dac5e06069e9e9eab2e7223ca8c75eaa05 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 21 Jun 2023 18:58:27 +0200 Subject: [PATCH] =?UTF-8?q?Anpassung=20f=C3=BCr=20energy=20brickies=20bot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iqrobot.py | 3 ++- main.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/iqrobot.py b/iqrobot.py index 0ff3148..01bf6dc 100644 --- a/iqrobot.py +++ b/iqrobot.py @@ -18,7 +18,7 @@ class IQRobot: self.movementMotors: MotorPair = MotorPair(leftMotorPort, rightMotorPort) #self.colorSensor: ColorSensor = ColorSensor(colorSensorPort) #self.frontMotorLeft: Motor = Motor("C") - self.frontMotorRight: Motor = Motor("E") + self.frontMotorRight: Motor = Motor("B") self.motionSensor: MotionSensor = MotionSensor() @@ -60,6 +60,7 @@ class IQRobot: step = 1 faktor = 1 print("Schreibe L") + #self.frontMotorRight.run_for_rotations(-0.4) radius=9.5 stift_versatz=2.2 if schreibe: diff --git a/main.py b/main.py index 2179ecb..bc0a848 100644 --- a/main.py +++ b/main.py @@ -73,8 +73,8 @@ dh auch an die Funktionen im importierten Code übergeben werde # Definiere an welchen Ports die Sensoren angeschlossen sind COLOR_SENSOR_PORT = 'E' #not implemented yet -LEFT_MOTOR_PORT = 'F' -RIGHT_MOTOR_PORT = 'B' +LEFT_MOTOR_PORT = 'E' +RIGHT_MOTOR_PORT = 'F' # Initialisieren des Hubs, der Aktoren und Sensoren hub = PrimeHub()