Heber Funktion

This commit is contained in:
Laptop 3 2023-11-15 18:42:59 +01:00
parent c8d2452a11
commit 58477b1d54

View file

@ -156,7 +156,8 @@ class IQRobot:
self.movementMotors.move(amount=richtung * 0.1, steering=100) self.movementMotors.move(amount=richtung * 0.1, steering=100)
drehung = self.motionSensor.get_yaw_angle() drehung = self.motionSensor.get_yaw_angle()
print(drehung) 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 :)") print("successfully loaded the IQ Lego teams code :)")