Browse Source

Update 'maze.adoc'

master
tsere 5 years ago
parent
commit
9deed1fd46
  1. 16
      maze.adoc

16
maze.adoc

@ -192,12 +192,16 @@ def moveFinished(lim=0):
.Κώδικας raspberry
[source,python]
--
if (abs(m.frontDistance-prevNode.frontDistance)>25):
continue
if (abs(m.leftDistance-prevNode.leftDistance)>25):
continue
if (abs(m.rightDistance-prevNode.rightDistance)>25):
continue
def ignoreMetrics():
flag=False
if (abs(m.frontDistance-pos.oldFrontValue)>25):
flag=True
if (abs(m.leftDistance-pos.oldLeftValue)>25):
flag=True
if (abs(m.rightDistance-pos.oldRightValue)>25):
flag=True
return flag
--

Loading…
Cancel
Save