From 1e2b0fc7907e9a22832900d0fc502e9f266f9b00 Mon Sep 17 00:00:00 2001 From: zouboan Date: Wed, 12 Jan 2022 21:15:02 +0800 Subject: [PATCH] new commit --- industry/foc/fixed16/foc_picontrol.c | 4 ++-- industry/foc/float/foc_picontrol.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/industry/foc/fixed16/foc_picontrol.c b/industry/foc/fixed16/foc_picontrol.c index c7f75f26d..2540aa4ab 100644 --- a/industry/foc/fixed16/foc_picontrol.c +++ b/industry/foc/fixed16/foc_picontrol.c @@ -345,9 +345,9 @@ static void foc_control_current_run_b16(FAR foc_handler_b16_t *h, /* Saturate voltage DQ vector */ #ifndef CONFIG_INDUSTRY_FOC_CORDIC_DQSAT - dq_saturate_b16(dq_ref, mag_max); + dq_saturate_b16(&v_dq_ref, mag_max); #else - foc_cordic_dqsat_b16(h->fd, dq_ref, mag_max); + foc_cordic_dqsat_b16(h->fd, &v_dq_ref, mag_max); #endif /* Call FOC voltage control */ diff --git a/industry/foc/float/foc_picontrol.c b/industry/foc/float/foc_picontrol.c index ce77e6b7f..48149a881 100644 --- a/industry/foc/float/foc_picontrol.c +++ b/industry/foc/float/foc_picontrol.c @@ -346,9 +346,9 @@ static void foc_control_current_run_f32(FAR foc_handler_f32_t *h, /* Saturate voltage DQ vector */ #ifndef CONFIG_INDUSTRY_FOC_CORDIC_DQSAT - dq_saturate(dq_ref, mag_max); + dq_saturate(&v_dq_ref, mag_max); #else - foc_cordic_dqsat_f32(h->fd, dq_ref, mag_max); + foc_cordic_dqsat_f32(h->fd, &v_dq_ref, mag_max); #endif /* Call FOC voltage control */