Heber Funktion #7

Merged
lahaferk merged 2 commits from laptop_3 into main 2023-11-16 19:37:45 +00:00
Showing only changes of commit 58477b1d54 - Show all commits

View file

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