⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arithmetic.h

📁 Freescale 智能车竞赛代码
💻 H
字号:
#ifndef _ARITHMETIC_H_
#define _ARITHMETIC_H_

typedef struct{  
  float Kp; // 比例常数 Proportional Const
	float Ki; // 积分常数 Integral Const
	float Kd; // 微分常数 Derivative Const

	float Un_1; // Uo[-1]
	float En_1; // Error[-1]
	float En_2; // Error[-2]
}PID;


void PIDInit(void);
float PIDCalc( PID *pp,int SetPoint, int DetectPoint );

void LineEdgeDetect(uchar *image,char *result,char No);
void RoadCenterDetect(void);
void CaculRoadParamK(void);
void run_arithmetic(uint  speed);

void SetSteerAngle(int angle);
void SteerZero(void);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -