mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 12:49:03 +00:00
examples/foc/foc_motor_b16.c: fix open loop Q current
This commit is contained in:
parent
26892be894
commit
1f4f338772
1 changed files with 2 additions and 2 deletions
|
|
@ -679,8 +679,8 @@ static int foc_motor_run(FAR struct foc_motor_b16_s *motor)
|
|||
* NOTE: Id always set to 0
|
||||
*/
|
||||
|
||||
motor->dq_ref.q = b16idiv(motor->envp->qparam, 1000);
|
||||
motor->dq_ref.d = 0;
|
||||
q_ref = b16idiv(motor->envp->qparam, 1000);
|
||||
d_ref = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue