modified method name #1

Merged
jenoack merged 1 commit from playground-jens into main 2023-02-15 08:21:17 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 88852015e0 - Show all commits

View file

@ -27,7 +27,7 @@ class IQRobot:
self.hub.light_matrix.show_image(image) self.hub.light_matrix.show_image(image)
def driveForward(self, seconds: float): def driveForward_for_sec(self, seconds: float):
# Fahre die übergebene Anzahl seconds gerade aus # Fahre die übergebene Anzahl seconds gerade aus
self.movementMotors.start() self.movementMotors.start()
wait_for_seconds(seconds) wait_for_seconds(seconds)

View file

@ -83,7 +83,7 @@ iqRobot: iq.IQRobot = iq.IQRobot(hub, LEFT_MOTOR_PORT, RIGHT_MOTOR_PORT, COLOR_S
# Führe Funktionen aus unser Robot Klasse aus: # Führe Funktionen aus unser Robot Klasse aus:
iqRobot.show('HAPPY') iqRobot.show('HAPPY')
iqRobot.driveForward(2.0) iqRobot.driveForward_for_sec(2.0)
colorIntensity = iqRobot.getColorIntensity() colorIntensity = iqRobot.getColorIntensity()
print("Farbintensität: " + str(colorIntensity)) print("Farbintensität: " + str(colorIntensity))