You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/03/29 17:13:42 UTC
[GitHub] [incubator-nuttx] acassis commented on a change in pull request #3230: drivers: add generic upper-half driver for Field Oriented Control (FOC)
acassis commented on a change in pull request #3230:
URL: https://github.com/apache/incubator-nuttx/pull/3230#discussion_r603467517
##########
File path: drivers/Kconfig
##########
@@ -130,3 +130,4 @@ source drivers/syslog/Kconfig
source drivers/platform/Kconfig
source drivers/rf/Kconfig
source drivers/rc/Kconfig
+source drivers/foc/Kconfig
Review comment:
I suggest moving it to drivers/motor/foc
##########
File path: Documentation/components/drivers/character/foc.rst
##########
@@ -0,0 +1,48 @@
+====================
+FOC Driver Interface
+====================
+
+Field Oriented Control (FOC) is a common technique to control
+either synchronous or asynchronous alternating current machines.
+The main goal of FOC is to control direct current (Id) and
+quadrature current (Iq) in powered device.
+
+The device on the kernel side is responsible for the following:
+
+#. update PWM duty cycles
+#. return ADC current samples
+#. synchronize user-space with PWM events
+
+The Nuttx FOC driver is split into two parts:
+
+#. An "upper half", generic driver that provides the common FOC
+ interface to application level code,
+#. A "lower half", platform-specific driver that implemets
+ the low-level logic to implement the FOC functionality
+
+Files supporitng FOC can be found in the following locations:
Review comment:
supporting
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org