One Motor
0.6.0
RoboMaster全平台一站式电机驱动库
载入中...
搜索中...
未找到
pid_c_api.h
1
#ifndef PID_C_API_H
2
#define PID_C_API_H
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
typedef
struct
PID_Handle
* PID_Handle_t;
9
10
typedef
struct
{
11
float
Kp;
12
float
Ki;
13
float
Kd;
14
float
MaxOutput;
15
float
Deadband;
16
float
IntegralLimit;
17
float
DerivativeFilterRC;
18
float
OutputFilterRC;
19
}
PID_Params_t
;
20
26
PID_Handle_t PID_Create(
const
PID_Params_t
* params);
27
32
void
PID_Destroy(PID_Handle_t handle);
33
41
float
PID_Compute(PID_Handle_t handle,
float
ref,
float
measure);
42
47
void
PID_Reset(PID_Handle_t handle);
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
//PID_C_API_H
PID_Handle
定义
N_pid_c_api.cpp:14
PID_Params_t
定义
pid_c_api.h:10
include
OneMotor
Control
pid_c_api.h
制作者
1.13.2