From 90ddfcda2574740d1cc33569360bec6e34b179c3 Mon Sep 17 00:00:00 2001 From: daisenryaku Date: Fri, 29 Dec 2017 20:48:47 +0800 Subject: [PATCH] Modify main.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加pid初始化 --- project/p10-ANO/application/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/p10-ANO/application/main.c b/project/p10-ANO/application/main.c index 73f8848..2f4335c 100644 --- a/project/p10-ANO/application/main.c +++ b/project/p10-ANO/application/main.c @@ -47,7 +47,8 @@ int main(void) /* Enable the MY_COM1 Receive interrupt: this interrupt is generated when the MY_COM1 receive data register is not empty */ USART_ITConfig(MY_COM1, USART_IT_RXNE, ENABLE); - + PID_init(); + for (i=0;;i++) { Attitude(); PID_calculate();