[release] version 1.0.0

This commit is contained in:
robinson
2026-05-23 00:16:40 +08:00
parent 9171374490
commit 361caca427
7 changed files with 164 additions and 58 deletions

View File

@@ -15,7 +15,6 @@ void pid_init(pid_t *pid)
float pid_compute(pid_t *pid, float target, float actual)
{
if (!pid) return 0.0f;
float error = target - actual;
/* 比例项 */
@@ -34,7 +33,6 @@ float pid_compute(pid_t *pid, float target, float actual)
pid->integral = -pid->integral_max;
}
float i_term = pid->Ki * pid->integral;
float output = p_term + i_term + d_term;
/* 输出限幅0=不限幅) */