summaryrefslogtreecommitdiff
path: root/strategy.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-01 18:04:04 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-01 18:04:04 +0200
commitccd6387920432c9a8263a2b9813d552642e6546a (patch)
tree88e7d588af56e9bd6c71b608df07a1d0c49cee1f /strategy.py
parent4251e85c172f57c39bdfa244e945578eb450926d (diff)
FancyClient has latency detection and rates motion steadyness
Diffstat (limited to 'strategy.py')
-rw-r--r--strategy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/strategy.py b/strategy.py
index 900cf8f..d0554c9 100644
--- a/strategy.py
+++ b/strategy.py
@@ -186,7 +186,7 @@ class Strategy:
self.gui.draw_bar(((100,40),(500,24)), success_rate, thresh=.98, color=(0,0,127))
- if success_rate >= 0.98:
+ if success_rate >= 0.98 and self.c.movement_steadyness() < math.pi/4:
self.c.send_shoot()