AM243x Motor Control SDK  09.01.00
CLARKE-PARK-ICLARKE-SVGEN Test

Simple data test incorporating foc-related libraries

This example runs verifies various transforms libraries used in motor-control application, specifically as a building block of Field of Control (FOC) motor design.

It demonstrates how to run clarke, park, inverse park transform and space-vector generation (svgen). This test trys to mimic a conventional workflow of passing current values into clarke transform, then park, then inverse park (PI controllers are neglected here but should exist for both open and close-loop design) and finally passing to svgen to generate the three-phase ABC value.

The test used an aribitary phasor angle that feeds into park/ipark, as opposed to an angle generation module required by an actual FOC design.

The test vector then compares the PARK, SVGEN results to ensure the integraty of the library.

Files and directory structure

Folder/Files Description
${SDK_INSTALL_PATH}/examples/transforms/transforms_test
transforms_test.c Main function for transforms library testing
transforms_test.h

Contains all initialization of test strctures and variables

${SDK_INSTALL_PATH}/source/transforms
clarke/ Folder containing CLARKE library source
park/ Folder containing PARK library source
ipark/ Folder containing IPARK library source
svgen/ Folder containing SVGEN library source

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
r5fss0-0 freertos
Toolchain ti-arm-clang
Boards am243x-evm, am243x-lp
Example folder examples/transforms/transforms_test

Steps to Run the Example

Sample Output

Shown below is a sample output when the application is run, assuming when all test passes:

Transforms test produced 0 error