Heber Funktion #7
1 changed files with 3 additions and 2 deletions
|
@ -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 :)")
|
||||
|
||||
|
|
Loading…
Reference in a new issue