標(biāo)題: STM32平衡車源程序 [打印本頁]

作者: 黎虬雪    時(shí)間: 2020-6-8 13:47
標(biāo)題: STM32平衡車源程序
32平衡車


單片機(jī)源程序如下:
  1. #include "stm32f10x.h"
  2. #include "SysTick.h"
  3. #include "control.h"
  4. #include "common.h"
  5. #include "motor.h"
  6. #include "bsp.h"
  7. #include "dataflash.h"



  8. /*
  9.         主函數(shù)入門,另外,控制功能函數(shù)在stm32f10x_it.c執(zhí)行文件的滴答定時(shí)器中斷服務(wù)函數(shù)里循環(huán)執(zhí)行。
  10. */
  11. int main(void)
  12. {       
  13.        
  14.         BspInit();                                //初始化BSP

  15.         PIDInit();                                 //初始化PID
  16.        
  17.         CarUpstandInit();         //初始化系統(tǒng)參數(shù)
  18.        
  19.         SysTick_Init();                        //初始化定時(shí)器       
  20.        

  21.         while (1)
  22.         {
  23.                
  24.         }
  25.        
  26. }
  27. /******************* (C) COPYRIGHT 2016 MiaowLabs Team *****END OF FILE************/
復(fù)制代碼

所有資料51hei提供下載:
小霸王Lite(STM32).rar (824.36 KB, 下載次數(shù): 34)
Mwbalanced-stm32-小霸王Lite-firmware-互補(bǔ)濾波-最簡(jiǎn)代碼.7z (436.14 KB, 下載次數(shù): 26)







歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1