examples/foc/foc_motor_b16.c: fix open loop Q current
This commit is contained in:
parent
26892be894
commit
1f4f338772
@ -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…
Reference in New Issue
Block a user