From fb826ac607d9684a1a36a193b7d48eef6eabdf12 Mon Sep 17 00:00:00 2001 From: Lennart Eriksson Date: Wed, 9 Nov 2016 11:06:33 +0100 Subject: [PATCH] got the main file back --- UAV-ControlSystem/src/main.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/UAV-ControlSystem/src/main.c b/UAV-ControlSystem/src/main.c index c5a75e8..fb73cea 100644 --- a/UAV-ControlSystem/src/main.c +++ b/UAV-ControlSystem/src/main.c @@ -62,18 +62,7 @@ void init_system() cliInit(USART3); //init sbus, using USART1 -// sbus_init(); - - arduinoCom_init(USART1); - - while(1) - { - HAL_Delay(1000); - if(arduino_frame_available()) - arduino_read(); - arduino_send_sensor_values(); - } - + sbus_init(); #ifdef USE_LEDS