Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/foc: return scaling factor for phase currents and BEMF via ioctl #11176

Merged
merged 2 commits into from Nov 14, 2023

Conversation

raiden00pl
Copy link
Contributor

Summary

  • drivers/foc: get hardware information via lower-half interface
  • drivers/foc: return scaling factor for phase currents and BEMF via ioctl
    These values are board-specific properties that must be known on the application side.
    Until now, these values had to be hardcoded on the application side.

Impact

we can get rid of the hardcoded ADC scaling values on the app side.
This is also the first step to support configurable phase currents gain.

Testing

odriver3.6 board (not yet upstream)

@raiden00pl raiden00pl force-pushed the foc_iphase branch 2 times, most recently from 8c03dcd to 4cdbd46 Compare November 13, 2023 16:43
include/nuttx/motor/foc/foc.h Outdated Show resolved Hide resolved
drivers/motor/foc/foc_dummy.c Outdated Show resolved Hide resolved
boards/arm/stm32f7/steval-eth001v1/src/stm32_foc.c Outdated Show resolved Hide resolved
boards/arm/stm32/common/src/stm32_ihm16m1.c Outdated Show resolved Hide resolved
boards/arm/stm32/common/src/stm32_ihm08m1.c Outdated Show resolved Hide resolved
boards/arm/stm32/common/src/stm32_ihm07m1.c Outdated Show resolved Hide resolved
boards/arm/stm32/b-g431b-esc1/src/stm32_foc.c Outdated Show resolved Hide resolved
boards/arm/stm32/b-g431b-esc1/src/stm32_foc.c Outdated Show resolved Hide resolved
boards/arm/stm32/b-g431b-esc1/src/stm32_foc.c Outdated Show resolved Hide resolved
boards/arm/stm32/common/src/stm32_ihm07m1.c Outdated Show resolved Hide resolved
@raiden00pl raiden00pl force-pushed the foc_iphase branch 2 times, most recently from 6d8eaa2 to 9783803 Compare November 14, 2023 08:24
These values are board-specific properties that must be known on the application side.
Until now, these values had to be hardcoded on the application side.
@xiaoxiang781216 xiaoxiang781216 merged commit 99513ac into apache:master Nov 14, 2023
26 checks passed
@raiden00pl raiden00pl deleted the foc_iphase branch November 19, 2023 09:40
@jerpelea jerpelea added this to To-Add in Release Notes - 12.4.0 Dec 27, 2023
@jerpelea jerpelea moved this from To-Add to drivers in Release Notes - 12.4.0 Jan 8, 2024
@jerpelea jerpelea moved this from drivers to processed in Release Notes - 12.4.0 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants