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.
| Folder/Files | Description |
|---|---|
| ${SDK_INSTALL_PATH}/examples/rtlibs/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/rtlibs/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 |
Shown below is a sample output when the application is run, assuming when all test passes: