标题: STM32平衡车源程序 [打印本页]

作者: 黎虬雪    时间: 2020-6-8 13:47
标题: STM32平衡车源程序
32平衡车


单片机源程序如下:
  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.         主函数入门,另外,控制功能函数在stm32f10x_it.c执行文件的滴答定时器中断服务函数里循环执行。
  10. */
  11. int main(void)
  12. {       
  13.        
  14.         BspInit();                                //初始化BSP

  15.         PIDInit();                                 //初始化PID
  16.        
  17.         CarUpstandInit();         //初始化系统参数
  18.        
  19.         SysTick_Init();                        //初始化定时器       
  20.        

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

所有资料51hei提供下载:
小霸王Lite(STM32).rar (824.36 KB, 下载次数: 34)
Mwbalanced-stm32-小霸王Lite-firmware-互补滤波-最简代码.7z (436.14 KB, 下载次数: 26)







欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1