Skip to content

Update powerlimit for omni and swerve - #226

Merged
Bluefairy-ljy merged 5 commits into
rm-controls:masterfrom
dzran1210:powerlimit
Nov 5, 2026
Merged

Bluefairy-ljy merged 5 commits into
rm-controls:masterfrom
dzran1210:powerlimit

Conversation

@dzran1210

Copy link
Copy Markdown
Contributor

为全向轮和舵轮控制器添加港科大功率限制代码。


#include <Eigen/Dense>
#include <rm_common/filters/lp_filter.h>
#include <rm_common/rls.h>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rls是否实际使用?头文件没有合进rm_controls

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rls实时拟合会超功率,特别是在升级、功率限制提升后,现已删除

Comment thread rm_chassis_controllers/src/omni.cpp Outdated

ewheel_power += real_torque * real_vel + wheel_power_limitor_.effort_coeff * square(real_torque) +
wheel_power_limitor_.vel_coeff * abs(real_vel);
cwheel_power += cmd_torque * real_vel + wheel_power_limitor_.effort_coeff * square(cmd_torque) +

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ewheel_power和cwheel_power变量名为啥这样取

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在都统一改成estimated和cmd前缀的规范了

@Bluefairy-ljy Bluefairy-ljy changed the title Update powerlimit for omni and swerve. Update powerlimit for omni and swerve Nov 5, 2026
@Bluefairy-ljy
Bluefairy-ljy merged commit 3b36252 into rm-controls:master Nov 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants