Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base-intersemestre-jedi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JEDI team3
base-intersemestre-jedi
Commits
f5ef22c8
Commit
f5ef22c8
authored
2 years ago
by
ROUE Simon, Claude, Yves
Browse files
Options
Downloads
Patches
Plain Diff
Update droids.py
parent
0e93333c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
droids.py
+3
-3
3 additions, 3 deletions
droids.py
with
3 additions
and
3 deletions
droids.py
+
3
−
3
View file @
f5ef22c8
...
@@ -229,9 +229,9 @@ class Droid3Sensors(Droid):
...
@@ -229,9 +229,9 @@ class Droid3Sensors(Droid):
def
print_distance_and_state
(
self
):
def
print_distance_and_state
(
self
):
while
True
:
while
True
:
print
(
"
yo
"
,
end
=
""
)
print
(
"
yo
"
,
end
=
""
)
print
(
self
.
controller
.
_get_robust_distance
(
self
.
controller
.
lef
t_sensor
))
print
(
self
.
controller
.
_get_robust_distance
(
self
.
controller
.
_ge
t_sensor
(
0
)
))
print
(
self
.
controller
.
_get_robust_distance
(
self
.
controller
.
righ
t_sensor
))
print
(
self
.
controller
.
_get_robust_distance
(
self
.
controller
.
_ge
t_sensor
(
1
)
))
print
(
self
.
controller
.
_get_robust_distance
(
self
.
controller
.
fron
t_sensor
))
print
(
self
.
controller
.
_get_robust_distance
(
self
.
controller
.
_ge
t_sensor
(
2
)
))
time
.
sleep
(
self
.
sampling_rate
)
time
.
sleep
(
self
.
sampling_rate
)
print
(
"
self:
"
,
self
)
print
(
"
self:
"
,
self
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment