Simple DCL DF22 controller demonstration
This example leverages a direct form 2 2nd order (DF22) compensator from the digital control library (DCL).
It demonstrates how to set up and run the DF22 controller. The example first initializes the datalog DCL_FDLOG to the test vector, runs the controller based on the test input and compares the output with the expected value.
| Folder/Files | Description |
|---|---|
| ${SDK_INSTALL_PATH}/examples/rtlibs/dcl/dcl_df22/ | |
| df22_test.c | Main function for DF22 testing |
| df22_test.h | Contains all initialization of needed structures |
| data/ | Contains pre-generated data files result compares with |
| ${SDK_INSTALL_PATH}/source/rtlibs/dcl | |
| dcl/ | Folder containing DCL library source |
| Parameter | Value |
|---|---|
| CPU + OS | r5fss0-0 nortos |
| r5fss0-0 freertos | |
| Toolchain | ti-arm-clang |
| Boards | am243x-evm, am243x-lp |
| Example folder | examples/rtlibs/dcl/dcl_df22 |
Shown below is a sample output when the application is run: