From 9eec71a003b4372c017d7feb1ba8fc9f959b8659 Mon Sep 17 00:00:00 2001 From: wujunchao Date: Fri, 13 Sep 2024 16:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ADC=E7=94=B5=E6=B5=81?= =?UTF-8?q?=E5=9B=9E=E9=87=87=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/Src/adcs.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/users/Src/adcs.c b/users/Src/adcs.c index b80d28f..e929da5 100644 --- a/users/Src/adcs.c +++ b/users/Src/adcs.c @@ -1,3 +1,11 @@ +/* + * @Author: wujunchao wujunchao@wuxismart.com + * @Date: 2024-08-21 13:24:11 + * @LastEditors: wujunchao wujunchao@wuxismart.com + * @LastEditTime: 2024-09-13 16:42:49 + * @FilePath: \acdt\users\Src\adcs.c + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ #include "adcs.h" @@ -12,6 +20,8 @@ void adcs_init(void) void adcs_data(void) { + //HAL_ADC_Start(&hadc1); + //ADC_ConvertedValue = HAL_ADC_GetValue(&hadc1); InputReg[12] = ADC_ConvertedValue; }