键鼠模式底盘方向修正,需优化底盘运动

This commit is contained in:
Zorua
2026-03-25 20:46:56 +08:00
committed by guoxy06
parent b355992730
commit 1f4e8d85b9
2 changed files with 7 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ void ChassisInit()
motor_steering_lb = DJIMotorInit(&chassis_motor_steering_config);
PID_Init_Config_s chassis_follow_pid_conf = {
.Kp = 1.05, // 6
.Kp = 1.2, // 6
.Ki = 0,
.Kd = 0.1, // 0.495
.DeadBand = 0.5f,// 启用死区,值为0.5度
@@ -159,7 +159,7 @@ void ChassisInit()
//.CoefB = 0.3,
//.Improve = PID_Trapezoid_Intergral | PID_DerivativeFilter | PID_DerivativeFilter | PID_Derivative_On_Measurement | PID_Integral_Limit | PID_Derivative_On_Measurement,
//.IntegralLimit = 50, // 200
.MaxOut = 45,
.MaxOut = 50,
//.Derivative_LPF_RC = 0.01, // 0.01
};
PIDInit(&chassis_follow_pid, &chassis_follow_pid_conf);