From 886c8a29bdd1a6ce50537fd6d9c26a9fcc0ad56a Mon Sep 17 00:00:00 2001 From: Samuel Date: Sat, 25 Jan 2025 17:02:51 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20des=20positions=20de=20d=C3=A9marr?= =?UTF-8?q?age?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/main.c b/main.c index 869b5a4..b0da2ae 100644 --- a/main.c +++ b/main.c @@ -30,14 +30,15 @@ #define ASCENSEUR_LACHE_POT_JARDINIERE 2 #define ASCENSEUR_LACHE_PLANTE 2 -#define STATU_PINCE_TIENT 0 -#define STATU_PINCE_LACHE 1 +#define STATU_PINCE_LACHE 0 +#define STATU_PINCE_TIENT 1 -#define STATU_CAME_POUSSE 0 -#define STATU_CAME_NEUTRE 1 +#define STATU_CAME_NEUTRE 0 +#define STATU_CAME_POUSSE 1 + +#define STATU_BANDEROLLE_NEUTRE 0 +#define STATU_BANDEROLLE_DEPLIE 1 -#define STATU_BANDEROLLE_DEPLIE 0 -#define STATU_BANDEROLLE_NEUTRE 1 unsigned result0, result1; @@ -86,9 +87,9 @@ void main() // Communication char message [256]; - char statu_pince; - char statu_came; - char statu_banderolle; + char statu_pince = STATU_PINCE_LACHE; + char statu_came = STATU_CAME_NEUTRE; + char statu_banderolle = STATU_BANDEROLLE_NEUTRE; communication_init(); // ADC