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) {