From 76269fe0b3aac7343ee8828840c6d89abd5ee226 Mon Sep 17 00:00:00 2001 From: lambert Date: Fri, 26 May 2006 08:47:12 +0000 Subject: es : * ajout des ack pour activation des RVB barillet --- n/es-2006/src/ack.h | 12 +++++++----- n/es-2006/src/barillet.c | 2 ++ 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: -- cgit v1.2.3