装超电后为预检录准备的版本

This commit is contained in:
chenfu
2024-05-26 11:40:33 +08:00
parent 346a0f4d70
commit da591dcfb4
8 changed files with 83 additions and 40 deletions

View File

@@ -61,7 +61,7 @@ void SpeedEstimation(LinkNPodParam *lp, LinkNPodParam *rp, ChassisParam *cp, INS
VAL_LIMIT(cp->vel_cov, 0.01, 100); // 协方差限幅
// 速度和位置分离,有速度输入时不进行位置闭环
if(abs(cp->target_v) < 0.001)
if(abs(cp->target_v) < 0.005)
{
cp->target_dist = 0;
cp->dist += cp->vel * delta_t;