examples/foc/foc_motor_b16.c: fix open loop Q current

This commit is contained in:
raiden00pl 2022-08-15 12:57:30 +02:00 committed by Petro Karashchenko
parent 26892be894
commit 1f4f338772

View File

@ -679,8 +679,8 @@ static int foc_motor_run(FAR struct foc_motor_b16_s *motor)
* NOTE: Id always set to 0 * NOTE: Id always set to 0
*/ */
motor->dq_ref.q = b16idiv(motor->envp->qparam, 1000); q_ref = b16idiv(motor->envp->qparam, 1000);
motor->dq_ref.d = 0; d_ref = 0;
} }
#endif #endif