修改了pid
This commit is contained in:
parent
78712e5918
commit
87f56647b1
Binary file not shown.
10512
MDK-ARM/DevC/DevC.hex
10512
MDK-ARM/DevC/DevC.hex
File diff suppressed because it is too large
Load Diff
@ -248,20 +248,20 @@ static const Config_RobotParam_t param_hero = {
|
|||||||
.pid = {
|
.pid = {
|
||||||
{
|
{
|
||||||
/* GIMBAL_PID_YAW_OMEGA_IDX */
|
/* GIMBAL_PID_YAW_OMEGA_IDX */
|
||||||
.k = 0.45f,
|
.k = 0.24f,
|
||||||
.p = 1.0f,
|
.p = 1.0f,
|
||||||
.i = 6.0f,
|
.i = 0.5f,
|
||||||
.d = 0.0008f,
|
.d = 0.0f,
|
||||||
.i_limit = 1.0f,
|
.i_limit = 1.0f,
|
||||||
.out_limit = 1.0f,
|
.out_limit = 1.0f,
|
||||||
.d_cutoff_freq = -1.0f,
|
.d_cutoff_freq = -1.0f,
|
||||||
.range = -1.0f,
|
.range = -1.0f,
|
||||||
}, {
|
}, {
|
||||||
/* GIMBAL_PID_YAW_ANGLE_IDX */
|
/* GIMBAL_PID_YAW_ANGLE_IDX */
|
||||||
.k = 20.0f,
|
.k = 10.0f,
|
||||||
.p = 1.0f,
|
.p = 1.0f,
|
||||||
.i = 0.0f,
|
.i = 0.0f,
|
||||||
.d = 0.0f,
|
.d = 0.05f,
|
||||||
.i_limit = 0.0f,
|
.i_limit = 0.0f,
|
||||||
.out_limit = 10.0f,
|
.out_limit = 10.0f,
|
||||||
.d_cutoff_freq = -1.0f,
|
.d_cutoff_freq = -1.0f,
|
||||||
@ -278,9 +278,9 @@ static const Config_RobotParam_t param_hero = {
|
|||||||
.range = -1.0f,
|
.range = -1.0f,
|
||||||
}, {
|
}, {
|
||||||
/* GIMBAL_PID_PIT_ANGLE_IDX */
|
/* GIMBAL_PID_PIT_ANGLE_IDX */
|
||||||
.k = 12.0f,
|
.k = 2.0f,
|
||||||
.p = 1.0f,
|
.p = 5.0f,
|
||||||
.i = 0.0f,
|
.i = 2.5f,
|
||||||
.d = 0.0f,
|
.d = 0.0f,
|
||||||
.i_limit = 0.0f,
|
.i_limit = 0.0f,
|
||||||
.out_limit = 10.0f,
|
.out_limit = 10.0f,
|
||||||
|
Loading…
Reference in New Issue
Block a user