Skip to content
Snippets Groups Projects
Commit f5ef22c8 authored by ROUE Simon, Claude, Yves's avatar ROUE Simon, Claude, Yves
Browse files

Update droids.py

parent 0e93333c
No related branches found
No related tags found
No related merge requests found
...@@ -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.left_sensor)) print(self.controller._get_robust_distance(self.controller._get_sensor(0)))
print(self.controller._get_robust_distance(self.controller.right_sensor)) print(self.controller._get_robust_distance(self.controller._get_sensor(1)))
print(self.controller._get_robust_distance(self.controller.front_sensor)) print(self.controller._get_robust_distance(self.controller._get_sensor(2)))
time.sleep(self.sampling_rate) time.sleep(self.sampling_rate)
print("self:", self) print("self:", self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment