Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Update wbTest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LeProblemeEDMN committed Jun 1, 2024
1 parent 852a937 commit b389274
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion raspberrypi/tests/wbTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,18 @@
#time.sleep(90)

for i in range(100):
print(i,sensors.get_all_sensors())
sen=sensors.get_all_sensors()
detect=np.sum(sen<0)>5

print(i,sensors.get_all_sensors(),detect)
if(detect):
print("RESET-------------------")
sensors = Sensors()
time.sleep(1)

print("BONNE ANN2e")
print("Sensors:",sensors)

wheeledbase.start_match()
wheeledbase.goto_stop(500,0, sensors)
while 1:
Expand Down

0 comments on commit b389274

Please sign in to comment.