From 65327ef87895217b6f9fa4a52762ca09c1851e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jasper=20G=C3=BCldenstein?= Date: Sat, 14 Nov 2020 16:53:25 +0100 Subject: [PATCH] en attente girouette --- keil_project/Src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/keil_project/Src/main.c b/keil_project/Src/main.c index 413e264..b572cc7 100644 --- a/keil_project/Src/main.c +++ b/keil_project/Src/main.c @@ -51,6 +51,7 @@ int angle_sail = 0; int RF_Input_Duty = 0; int TX_Flag = 0, CONTROL_LOOP_Flag = 0; +char wait_for_girouette[] = "En attente d'initialisation de la girouette\r\n"; int main(void) { /* Configure the system clock to 72 MHz */ @@ -61,6 +62,12 @@ int main(void) SAIL_Init(); accelero_init(); + while(!INCR_ENCODER_IsAbsolute()) + { + emetteur_send_bytes(wait_for_girouette, sizeof(wait_for_girouette)); + LL_mDelay(500); + } + /* Infinite loop */ while (1) {