Skip to content
Kevin79111Public

About

滑模控制模块

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Sliding

从 testluncher - slide/Modules/Sliding 移植到 XRobot 1.0 / 新 LibXR。 纯 C++ 类,不再依赖旧的 Application、HardwareContainer 和 ApplicationManager。

Sliding(const Param& param = {...});
float Calculate(const LibXR::CycleValue<float>& target,
                const LibXR::CycleValue<float>& pos, float vol,
                float target_vol, float target_ddot = 0.0f);

保留原控制律:s = c * e + e_dot, u = J * (target_ddot - c * e_dot - K * s - eta * sat(s / phi))。 角度采用 CycleValue 最短角度差;角速度单位 rad/s,输出为负载侧 N·m。 J、K、c、eta、phi、pos_eps 沿用源工程的字段名和顺序。

源工程六个参数全部为 0,默认不会输出力矩;实际使用前需按机构整定。 InfantryLauncher 的 sliding: '&sliding' 选择滑模,sliding: nullptr 选择 PID。

本模块目前为本地独立 Git 仓库,使用 Modules/local_index.yaml 注册。 主 BSP 不跟踪 Modules/*/;发布前需将本模块推送到独立远端仓库,更新源地址, 并通过 xrobot setup 更新锁文件。

About

滑模控制模块

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages