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
- phase weighting repetitive control
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:
- PWRC: Phase Weighting Repetitive Control: a phase based frequency adaptive repetitive control.
Just fork and post pull request.