|
32平衡車
51hei.png (12.87 KB, 下載次數(shù): 55)
下載附件
2020-6-10 04:28 上傳
單片機(jī)源程序如下:
- #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í)器中斷服務(wù)函數(shù)里循環(huán)執(zhí)行。
- */
- int main(void)
- {
-
- BspInit(); //初始化BSP
- PIDInit(); //初始化PID
-
- CarUpstandInit(); //初始化系統(tǒng)參數(shù)
-
- SysTick_Init(); //初始化定時(shí)器
-
-
- while (1)
- {
-
- }
-
- }
- /******************* (C) COPYRIGHT 2016 MiaowLabs Team *****END OF FILE************/
復(fù)制代碼
所有資料51hei提供下載:
小霸王Lite(STM32).rar
(824.36 KB, 下載次數(shù): 34)
2020-6-8 13:45 上傳
點(diǎn)擊文件名下載附件
平衡車器件pcb 下載積分: 黑幣 -5
Mwbalanced-stm32-小霸王Lite-firmware-互補(bǔ)濾波-最簡代碼.7z
(436.14 KB, 下載次數(shù): 26)
2020-6-10 04:29 上傳
點(diǎn)擊文件名下載附件
代碼 下載積分: 黑幣 -5
|
|