添加驱动轮支持力解算

This commit is contained in:
kai
2024-04-30 21:23:03 +08:00
parent 410c23e527
commit 85badbc297
4 changed files with 38 additions and 2 deletions

View File

@@ -12,6 +12,9 @@
#define MAX_DIST_TRACK 1.0f
#define MAX_VEL_TRACK 0.5f
// 驱动轮质量
#define WHEEL_MASS 0.58f
// IMU距离中心的距离
#define CENTER_IMU_W 0
#define CENTER_IMU_L 0.1f
@@ -50,6 +53,8 @@ typedef struct
float wheel_w; // 单侧轮子的速度
float body_v; // 髋关节速度
float T_wheel;
float zw_ddot; // 驱动轮竖直方向加速度
float normal_force; // 支持力
// pod
float theta, theta_w; // 杆和垂直方向的夹角,为控制状态之一