mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-08 14:45:12 +00:00
industry/foc: reset velocity observer output foc_velocity_zero_xx() is called
This commit is contained in:
parent
5a65f3d48f
commit
53b7486528
4 changed files with 8 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ static int foc_velocity_div_zero_b16(FAR foc_velocity_b16_t *h)
|
|||
div->cfg.filter,
|
||||
div->cfg.per);
|
||||
|
||||
div->o.speed = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -212,6 +212,8 @@ static int foc_velocity_pll_zero_b16(FAR foc_velocity_b16_t *h)
|
|||
pll->cfg.kp,
|
||||
pll->cfg.ki);
|
||||
|
||||
pll->o.speed = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,6 +214,8 @@ static int foc_velocity_div_zero_f32(FAR foc_velocity_f32_t *h)
|
|||
div->cfg.filter,
|
||||
div->cfg.per);
|
||||
|
||||
div->o.speed = 0.0f;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -212,6 +212,8 @@ static int foc_velocity_pll_zero_f32(FAR foc_velocity_f32_t *h)
|
|||
pll->cfg.kp,
|
||||
pll->cfg.ki);
|
||||
|
||||
pll->o.speed = 0.0f;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue