Configuration macros for MPPT block.
These macros should be defined in mtb_mw_pctrl_user_config.h to configure the MPPT algorithm variant and features.
Variant selection macros:
- MPPT_USE_VARIANT_PNO (default)
Use perturb and observe (P&O) variant of MPPT. This is the classic hill-climbing algorithm that periodically perturbs the operating point and observes the resulting power change. If power increases, perturbation continues in the same direction; if power decreases, the perturbation direction is reversed. This variant is suitable for photovoltaic systems, wind energy converters, and other renewable energy applications requiring maximum power extraction.
Performance optimization:
- MPPT_USE_INLINE
Enable function inlining for MPPT. Define this macro to inline the main MPPT algorithm execution function for improved performance. This trades code size for faster execution time, which can be beneficial in high-frequency control loops.