summaryrefslogtreecommitdiffstats
path: root/events-example3.py
diff options
context:
space:
mode:
authorgroup1 <f16_group1@pbridge.adm.cs.cmu.edu>2016-10-16 22:12:51 -0400
committergroup1 <f16_group1@pbridge.adm.cs.cmu.edu>2016-10-16 22:12:51 -0400
commit22f814539e14312afb5627f7ad39905e9450209b (patch)
treeee0751e887600ed2a56bfc07a8bc34c537efcfda /events-example3.py
parentcc3d2cd333f6c0c18a201d4ede36b1c62e9caef8 (diff)
parent0f54d73feea16124e92ff6baab78e3d3d3d97fa3 (diff)
downloadbridge-22f814539e14312afb5627f7ad39905e9450209b.tar.zst
Merge branch 'master' of https://github.com/rayhogenson/bridge
Conflicts: fish_show.py
Diffstat (limited to 'events-example3.py')
-rwxr-xr-xevents-example3.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/events-example3.py b/events-example3.py
index bbf2d68..18db630 100755
--- a/events-example3.py
+++ b/events-example3.py
@@ -114,7 +114,11 @@ def fixDirection(data, theta=None):
def doStep(data):
data.counter += 1
+<<<<<<< HEAD
+ if random.random() < 1 / 50:
+=======
if data.counter % 50 == 0:
+>>>>>>> 9b60deedc508c74b249fd1da0776b5a719322807
fixDirection(data)
#print(abs(data.tailAcceleration))
data.speed += data.drag * data.speed / abs(data.speed)