- 积分
- 992
- 注册时间
- 2014-12-4
- 最后登录
- 1970-1-1
- 打卡等级:偶尔看看
- 打卡总天数:105
- 打卡总奖励:319
|
楼主 |
发表于 2018-6-7 01:10:54
|
显示全部楼层
很好!
你可以在#61行改变收益
[Ki,Kp,Kd,K2] = [0,2.0,0,0]
将Kp更改为2并将Ki,Kd和K2设置为0
#25-27行更改模型
K是开环增益。
NF是自然频率
DF是阻尼因素。
以#开头的行是注释行,不会执行。
79号线是您选择控制算法的地方。
control.P只是成比例的。
control.PI是PI控制。
control.PFF与前馈成正比。 要使用前馈,您必须正确设置第63行。
[Kv,Ka,Kj] = [0.1,0.0010610329539459688,2.5330295910584444e-05]
这将K,NF a DF值的速度,加速度和挺举前馈设置为最佳值。
控制算法的选项位于closedloop文件中。
首先只需更改HydSim-linear.py文件。
Very good!
You can change gains in line #61
[ Ki, Kp, Kd, K2 ] = [0, 2.0, 0, 0 ]
changes Kp to 2 and sets Ki, Kd and K2 to 0
line #25-27 change the model
K is the open loop gain.
NF is the natual frequency
DF is the damping factor.
lines that start with # are comment lines and are not executed.
Line #79 is where you select the control algorithm.
control.P is proportional only.
control.PI is PI control.
control.PFF is proportional with feed forwards. To use feed forwards you must set line #63 correctly.
[Kv, Ka, Kj] = [0.1, 0.0010610329539459688, 2.5330295910584444e-05]
This sets the velocity, acceleration and jerk feedforwards to optimal values for the K, NF a DF values.
The options for control algorithms are in the closedloop file.
Only change the the HydSim-linear.py file at first.
正弦波幅度,频率相位和偏移量设置为#43。
|
|