From 58477b1d548f3249f6b151fbb3a92407d79dd6ba Mon Sep 17 00:00:00 2001 From: Laptop 3 Date: Wed, 15 Nov 2023 18:42:59 +0100 Subject: [PATCH] Heber Funktion --- iqrobot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iqrobot.py b/iqrobot.py index 3aa2ed9..4be7d7b 100644 --- a/iqrobot.py +++ b/iqrobot.py @@ -52,7 +52,7 @@ class IQRobot: self.rad_radius = 2.9 # Abstand zwischen Rädern (Mitte) und Vorderseite des Roboters self.abstand_rad_front = 8.5 - + ## Allgemein ## self.movementMotors: MotorPair = MotorPair(LEFT_MOTOR_PORT, RIGHT_MOTOR_PORT) # Radumfang neu berechnen und Motor konfigurieren @@ -156,7 +156,8 @@ class IQRobot: self.movementMotors.move(amount=richtung * 0.1, steering=100) drehung = self.motionSensor.get_yaw_angle() print(drehung) - + def heber(self, cm,speed): + self.bothFrontMotors.move_tank(-cm*3.3,"cm", -speed, speed) print("successfully loaded the IQ Lego teams code :)")