An example for a feedback control model implemented by using FreeRTOS routines such as tasks and queues. MATLAB code performs the computatuin of matrices as well as the comparison between FreeRTOS and Simulink output vectors. Completed in order to meet the requirements of the Real-Time Digital Systems course.
- Download the latest FreeRTOS version: https://freertos.org/a00104.html.
- In FreeRTOS\Demo\WIN32-MSVC, open WIN32.sln with Microsoft Visual Studio.
- Replace main.c, main_blinky.c and FreeRTOSConfig.h from the demo with corresponding files from the repo.
- Run the FreeRTOS project.
- In MATLAB, run RTDS2022.m. SLX and TXT files must be in the same folder.
- model_u.txt, model_y.txt and RTOS_vs_Simulink.fig are just for demonstration purposes.