summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/interpreter/ball_tracker.c
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-22 21:59:02 +0100
committersicarius <devnull@localhost>2007-02-22 21:59:02 +0100
commitf544ab78229d3a4d54b910135ba61bb816009589 (patch)
tree6b1d9aad746299631a0b67661c2d2be62b5e7525 /source/Concept/Framework/modules/interpreter/ball_tracker.c
parentdc8b1cde313f3f8a60462187bbeeea4277fd0313 (diff)
downloadrc2007-soccer-f544ab78229d3a4d54b910135ba61bb816009589.tar
rc2007-soccer-f544ab78229d3a4d54b910135ba61bb816009589.zip
The Last Day ?
Diffstat (limited to 'source/Concept/Framework/modules/interpreter/ball_tracker.c')
-rwxr-xr-xsource/Concept/Framework/modules/interpreter/ball_tracker.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Concept/Framework/modules/interpreter/ball_tracker.c b/source/Concept/Framework/modules/interpreter/ball_tracker.c
index 2d85b96..16fdfb4 100755
--- a/source/Concept/Framework/modules/interpreter/ball_tracker.c
+++ b/source/Concept/Framework/modules/interpreter/ball_tracker.c
@@ -21,6 +21,21 @@ void Ball_Tracker::Update()
{
greatestIntensity = i;
}
+
+ if(i == 0)
+ {
+ if(intensity[i] > BALL_HELD_INTENSITY) // Ball derzeit sehr nah dran
+ {
+ ballHeld = true;
+ ballHeldCounter = 100;
+ }
+ else if(ballHeldCounter > 0) // Oder vor kurzem erst sehr nah dran
+ {
+ ballHeld = true;
+ ballHeldCounter--;
+ }
+ else ballHeld = false; // ansonsten hat er den Ball nicht
+ }
}
if(intensity[greatestIntensity])