Anpassung für energy brickies bot
This commit is contained in:
parent
6b094d3f9c
commit
8e7836dac5
2 changed files with 4 additions and 3 deletions
|
@ -18,7 +18,7 @@ class IQRobot:
|
|||
self.movementMotors: MotorPair = MotorPair(leftMotorPort, rightMotorPort)
|
||||
#self.colorSensor: ColorSensor = ColorSensor(colorSensorPort)
|
||||
#self.frontMotorLeft: Motor = Motor("C")
|
||||
self.frontMotorRight: Motor = Motor("E")
|
||||
self.frontMotorRight: Motor = Motor("B")
|
||||
self.motionSensor: MotionSensor = MotionSensor()
|
||||
|
||||
|
||||
|
@ -60,6 +60,7 @@ class IQRobot:
|
|||
step = 1
|
||||
faktor = 1
|
||||
print("Schreibe L")
|
||||
#self.frontMotorRight.run_for_rotations(-0.4)
|
||||
radius=9.5
|
||||
stift_versatz=2.2
|
||||
if schreibe:
|
||||
|
|
4
main.py
4
main.py
|
@ -73,8 +73,8 @@ dh auch an die Funktionen im importierten Code übergeben werde
|
|||
|
||||
# Definiere an welchen Ports die Sensoren angeschlossen sind
|
||||
COLOR_SENSOR_PORT = 'E' #not implemented yet
|
||||
LEFT_MOTOR_PORT = 'F'
|
||||
RIGHT_MOTOR_PORT = 'B'
|
||||
LEFT_MOTOR_PORT = 'E'
|
||||
RIGHT_MOTOR_PORT = 'F'
|
||||
|
||||
# Initialisieren des Hubs, der Aktoren und Sensoren
|
||||
hub = PrimeHub()
|
||||
|
|
Loading…
Reference in a new issue