Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Vicente Castellano Gómez
/
robotAmbientales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
71061912
authored
May 03, 2024
by
Vicente Castellano Gómez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Añadida robot.setting la velocidad para que no corra tanto al avanzar
parent
ce3a5a7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
robot.py
robot.py
View file @
71061912
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment