Schaufel Funktion

schaufel-funktion
(MakerLab) Laptop 2 2023-11-15 18:42:04 +01:00
parent c8d2452a11
commit 68f71f808f
1 changed files with 5 additions and 0 deletions

View File

@ -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 :)")