diff --git a/iqrobot.py b/iqrobot.py index 6a4791c..0c7be37 100644 --- a/iqrobot.py +++ b/iqrobot.py @@ -127,6 +127,11 @@ class IQRobot: drehung = self.bewegungsSensor.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 :)")