Añadida robot.setting la velocidad para que no corra tanto al avanzar

parent ce3a5a7f
Showing with 2 additions and 2 deletions
......@@ -22,6 +22,7 @@ class Robot:
self.giroSensor = GyroSensor(Port.S1)
self.colorSensor = ColorSensor(Port.S4)
self.robot = DriveBase(left_motor, right_motor, wheel_diameter=55.5, axle_track=124)
self.robot.settings(straight_speed=self.velocidad)
self.colaMovimientos = []
#Metodos gestion negros
......@@ -127,4 +128,4 @@ class Robot:
def rutaPedido(self):
while self.colaMovimientos.not_empty():
movimientoAct = self.colaMovimientos.get()
#Aqui faltan los if correspondientes a cada tipo de movimiento
\ No newline at end of file
#Aqui faltan los if correspondientes a cada tipo de movimiento
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment