|
GKD.RoboCtrl
|
通用 PID 控制器实现。 更多...
类 | |
| struct | roboctrl::utils::pid_base< T, error_measurer > |
| PID 控制器基础模板。 更多... | |
| struct | roboctrl::utils::pid_base< T, error_measurer >::params_type |
| 统一的参数封装,方便序列化。 更多... | |
命名空间 | |
| namespace | roboctrl::utils |
| 用于存放工具函数的命名空间。 | |
类型定义 | |
| using | roboctrl::utils::linear_pid = pid_base< fp32, details::linear_error > |
| 线性 PID 控制器。 | |
| using | roboctrl::utils::rad_pid = pid_base< fp32, details::rad_error > |
| 角度 PID 控制器。 | |
| template<device::motor motor_type> | |
| using | roboctrl::utils::linear_pid_motor = device::controlled_motor< motor_type, linear_pid > |
| 将线性 PID 附着于特定电机类型的别名。 | |
| template<device::motor motor_type> | |
| using | roboctrl::utils::rad_pid_motor = device::controlled_motor< motor_type, rad_pid > |
| 将角度 PID 附着于特定电机类型的别名。 | |
变量 | |
| constexpr auto | roboctrl::utils::details::linear_error |
| 线性误差计算方式。 | |
| constexpr auto | roboctrl::utils::details::rad_error |
| 角度误差计算方式,自动处理 2π 周期。 | |
|
constexpr |
线性误差计算方式。