From 1f4f338772a9759dac4cedc577dace34aa2ea222 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 15 Aug 2022 12:57:30 +0200 Subject: [PATCH] examples/foc/foc_motor_b16.c: fix open loop Q current --- examples/foc/foc_motor_b16.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/foc/foc_motor_b16.c b/examples/foc/foc_motor_b16.c index a734001e6..d803e9a61 100644 --- a/examples/foc/foc_motor_b16.c +++ b/examples/foc/foc_motor_b16.c @@ -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