32平衡車
單片機源程序如下:
- #include "stm32f10x.h"
- #include "SysTick.h"
- #include "control.h"
- #include "common.h"
- #include "motor.h"
- #include "bsp.h"
- #include "dataflash.h"
- /*
- 主函數(shù)入門,另外,控制功能函數(shù)在stm32f10x_it.c執(zhí)行文件的滴答定時器中斷服務函數(shù)里循環(huán)執(zhí)行。
- */
- int main(void)
- {
-
- BspInit(); //初始化BSP
- PIDInit(); //初始化PID
-
- CarUpstandInit(); //初始化系統(tǒng)參數(shù)
-
- SysTick_Init(); //初始化定時器
-
-
- while (1)
- {
-
- }
-
- }
- /******************* (C) COPYRIGHT 2016 MiaowLabs Team *****END OF FILE************/
復制代碼
所有資料51hei提供下載:
小霸王Lite(STM32).rar
(824.36 KB, 下載次數(shù): 34)
2020-6-8 13:45 上傳
點擊文件名下載附件
平衡車器件pcb
Mwbalanced-stm32-小霸王Lite-firmware-互補濾波-最簡代碼.7z
(436.14 KB, 下載次數(shù): 26)
2020-6-10 04:29 上傳
點擊文件名下載附件
代碼
|