xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 8KB
    文件類型: .c
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-06
  • 語言: 其他
  • 標簽: pid??直流電機??

資源簡介

pid小車四個輪子的代碼,模板,做小車的同學可以參考,

資源截圖

代碼片段和文件信息

#include?
#include?“systick.h“
#include?“motor.h“
#include?“PID.h“

__IO?uint32_t?CaptureNumber1;
__IO?uint32_t?CaptureNumber2;
__IO?uint32_t?CaptureNumber3;
__IO?uint32_t?CaptureNumber4;

typedef?struct?
{
__IO?int??????SetPoint;?????????????????????????????????//設定目標?Desired?Value
__IO?double???Proportion;???????????????????????????????//比例常數(shù)?Proportional?Const
__IO?double???Integral;?????????????????????????????????//積分常數(shù)?Integral?Const
__IO?double???Derivative;???????????????????????????????//微分常數(shù)?Derivative?Const
__IO?int??????LastError1;????????????????????????????????//Error[-1]
__IO?int??????PrevError1;????????????????????????????????//Error[-2]
__IO?int??????LastError2;????????????????????????????????//Error[-1]
__IO?int??????PrevError2;?????

評論

共有 條評論