Compare commits
No commits in common. "31510f9e2134d697e28cc60ece551f4b0cb6dc0e" and "b86e3484e6714be91026881f1a8841e6d2ec67d3" have entirely different histories.
31510f9e21
...
b86e3484e6
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class IQRobot:
|
|||
self.hub.light_matrix.show_image(image)
|
||||
|
||||
|
||||
def driveForward_for_sec(self, seconds: float):
|
||||
def driveForward(self, seconds: float):
|
||||
# Fahre die übergebene Anzahl seconds gerade aus
|
||||
self.movementMotors.start()
|
||||
wait_for_seconds(seconds)
|
||||
|
|
2
main.py
2
main.py
|
@ -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:
|
||||
iqRobot.show('HAPPY')
|
||||
iqRobot.driveForward_for_sec(2.0)
|
||||
iqRobot.driveForward(2.0)
|
||||
colorIntensity = iqRobot.getColorIntensity()
|
||||
print("Farbintensität: " + str(colorIntensity))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue