You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/17 06:23:47 UTC

[nuttx-apps] branch master updated (5dd4813b3 -> e8ff9ad00)

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

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


    from 5dd4813b3 examples/foc: fix wrong nxscope functions for fixed16
     new 4c4976a4e examples/foc: add warning if no controller enabled
     new 969607ac4 examples/foc: fix setpoint scale for char interface
     new e8ff9ad00 foc/example/Kconfig: cosmetics

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/foc/Kconfig   | 4 ++--
 examples/foc/foc_cfg.h | 2 +-
 examples/foc/foc_thr.c | 4 ++++
 3 files changed, 7 insertions(+), 3 deletions(-)


[nuttx-apps] 03/03: foc/example/Kconfig: cosmetics

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e8ff9ad0052b1ec354dc58500533cb53ce748d10
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Oct 16 11:20:26 2023 +0200

    foc/example/Kconfig: cosmetics
---
 examples/foc/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/foc/Kconfig b/examples/foc/Kconfig
index e5a8292fb..1b601268c 100644
--- a/examples/foc/Kconfig
+++ b/examples/foc/Kconfig
@@ -366,11 +366,11 @@ config EXAMPLES_FOC_HAVE_ALIGN
 if EXAMPLES_FOC_HAVE_ALIGN
 
 config EXAMPLES_FOC_ALIGN_VOLT
-	int "EXAMPLES_FOC_ALIGN_VOLT (x1000)"
+	int "FOC example motor alignment voltage (x1000)"
 	default 0
 
 config EXAMPLES_FOC_ALIGN_SEC
-	int "EXAMPLES_FOC_ALIGN_SEC (x1000)"
+	int "FOC example motor alignment time (x1000)"
 	default 0
 
 endif # EXAMPLES_FOC_HAVE_ALIGN


[nuttx-apps] 01/03: examples/foc: add warning if no controller enabled

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 4c4976a4e9a84c16f6a535b1e34493c27d5ea5ab
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Oct 10 13:14:51 2023 +0200

    examples/foc: add warning if no controller enabled
---
 examples/foc/foc_thr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/foc/foc_thr.c b/examples/foc/foc_thr.c
index a84efc2a7..7fe5a31c4 100644
--- a/examples/foc/foc_thr.c
+++ b/examples/foc/foc_thr.c
@@ -46,6 +46,10 @@
 #  define CONFIG_EXAMPLES_FOC_FIXED16_INST (0)
 #endif
 
+#if CONFIG_EXAMPLES_FOC_FLOAT_INST + CONFIG_EXAMPLES_FOC_FIXED16_INST == 0
+#  warning no control thread enabled !
+#endif
+
 /****************************************************************************
  * Extern Functions Prototypes
  ****************************************************************************/


[nuttx-apps] 02/03: examples/foc: fix setpoint scale for char interface

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 969607ac44bba36119145c764fa72d108ccc76d0
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Oct 10 13:16:33 2023 +0200

    examples/foc: fix setpoint scale for char interface
---
 examples/foc/foc_cfg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/foc/foc_cfg.h b/examples/foc/foc_cfg.h
index 44f46c4ab..14a1d1a47 100644
--- a/examples/foc/foc_cfg.h
+++ b/examples/foc/foc_cfg.h
@@ -180,7 +180,7 @@
 /* CHARCTRL setpoint control */
 
 #ifdef CONFIG_EXAMPLES_FOC_SETPOINT_CHAR
-#  define SETPOINT_ADC_SCALE  (1 / 1000.0f)
+#  define SETPOINT_ADC_SCALE  (1.0f / (CONFIG_EXAMPLES_FOC_SETPOINT_MAX / 1000.0f))
 #endif
 
 /* VBUS source must be specified */