You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/01/12 16:36:08 UTC

[incubator-nuttx-apps] branch master updated: new commit

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e2b0fc  new commit
1e2b0fc is described below

commit 1e2b0fc7907e9a22832900d0fc502e9f266f9b00
Author: zouboan <ff...@feedforward.com.cn>
AuthorDate: Wed Jan 12 21:15:02 2022 +0800

    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 c7f75f2..2540aa4 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 ce77e6b..48149a8 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 */