This repository contains implementation of 3 types of controllers:
- proportional-integral controller: derivative component is not considered yet.
- proportional-resonant controller
- repetitive controller
- a baseline implementation
- FIR filter based frequency adaptive RC
Every controller contains an examples folder for validation.
The code is very simple, so detailed explanation is only written for PR controller.
I implemented the controllers for control of LCL grid-connected inverters at college for experiments. Feel free to use the code for your own specific application at your own risk.
Second order generalized integrator is used to implement resonant part. It is designed to be frequency-adaptive.
- baseline: a baseline implementation.
- FORC: an implementation of Fractional Order Repetitive Control. References:
Just fork and post pull request.