From 68f71f808f104a8542dbb5e58820ca4ad7bb2415 Mon Sep 17 00:00:00 2001 From: "(MakerLab) Laptop 2" Date: Wed, 15 Nov 2023 18:42:04 +0100 Subject: [PATCH] Schaufel Funktion --- iqrobot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iqrobot.py b/iqrobot.py index 3aa2ed9..c542e4c 100644 --- a/iqrobot.py +++ b/iqrobot.py @@ -157,6 +157,11 @@ class IQRobot: drehung = self.motionSensor.get_yaw_angle() print(drehung) + def schaufel(self,prozent): + volle_umdrehung=0.29 + rotations=volle_umdrehung*prozent/100 + self.bothFrontMotors.move(rotations, unit='rotations',speed=20) + print("successfully loaded the IQ Lego teams code :)") -- 2.45.2