summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambert2006-05-26 08:47:12 +0000
committerlambert2006-05-26 08:47:12 +0000
commit76269fe0b3aac7343ee8828840c6d89abd5ee226 (patch)
tree21bd163b643468bf5d0d79de8598b6438b2e4bf1
parent56e637ec77fc6c220009663dcc35712e399bfd5d (diff)
es :
* ajout des ack pour activation des RVB barillet
-rw-r--r--n/es-2006/src/ack.h12
-rw-r--r--n/es-2006/src/barillet.c2
2 files changed, 9 insertions, 5 deletions
diff --git a/n/es-2006/src/ack.h b/n/es-2006/src/ack.h
index c4bcd12..53a2927 100644
--- a/n/es-2006/src/ack.h
+++ b/n/es-2006/src/ack.h
@@ -31,11 +31,13 @@
/** List here what you want to tell to the world and put a description.
* You must use a different number for each code and it must be lower than 255
* of course ! */
-#define ACK_NOTHING 0 /* Nothing to ack */
-#define ACK_CONTACT_FRONT 1 /* Something in the front */
-#define ACK_BARILLET_BALL_FRONT 2 /* A ball has been get from the front
- */
-#define ACK_BARILLET_BALL_REAR 3 /* Ball in the rear */
+#define ACK_NOTHING 0 /* Nothing to ack */
+#define ACK_CONTACT_FRONT 1 /* Something in the front */
+#define ACK_BARILLET_BALL_FRONT 2 /* A ball has been get from the front
+ */
+#define ACK_BARILLET_BALL_REAR 3 /* Ball in the rear */
+
+#define ACK_BARILLET_BALL_ARRIVED 4 /* Ball is comming */
// FIXME, inline ? static ?
diff --git a/n/es-2006/src/barillet.c b/n/es-2006/src/barillet.c
index 38f3771..5eb2934 100644
--- a/n/es-2006/src/barillet.c
+++ b/n/es-2006/src/barillet.c
@@ -340,6 +340,7 @@ void sequenceur_barillet()
etat_en_cours_ = AV_EX_SOLO;
break;
case AV_EX_SOLO:
+ ack_set (ACK_BARILLET_BALL_ARRIVED);
rotation_barillet ((pos_actuel_ + 8) % 40, AV_EX_ROTATION);
break;
case AV_EX_FIN:
@@ -351,6 +352,7 @@ void sequenceur_barillet()
case AR_EX_VU:
break;
case AR_EX_PASSE:
+ ack_set (ACK_BARILLET_BALL_ARRIVED);
rotation_barillet ((pos_actuel_ + 8) % 40, AR_EX_ROTATION);
break;
case AR_EX_FIN: