mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
修改与轮电机固连杆,使用机体速度计算LQR增益
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
void SpeedEstimation(LinkNPodParam *lp, LinkNPodParam *rp, ChassisParam *cp, INS_t *imu, float delta_t)
|
||||
{
|
||||
// 修正轮速和距离
|
||||
lp->wheel_w = lp->w_ecd + lp->phi2_w - cp->pitch_w; // 减去和定子固连的phi2_w
|
||||
rp->wheel_w = rp->w_ecd + rp->phi2_w - cp->pitch_w;
|
||||
lp->wheel_w = lp->w_ecd + lp->phi3_w - cp->pitch_w; // 减去和定子固连的phi2_w
|
||||
rp->wheel_w = rp->w_ecd + rp->phi3_w - cp->pitch_w;
|
||||
|
||||
// 以轮子为基点,计算机体两侧髋关节处的速度
|
||||
lp->body_v = lp->wheel_w * WHEEL_RADIUS + lp->leg_len * lp->theta_w + lp->legd * msin(lp->theta);
|
||||
|
||||
Reference in New Issue
Block a user