Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mppt module

Maximum Power Point Tracker

Solar Cells control board by Michel

Example for airframe file

Add to your firmware section:

1 <module name="MPPT"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

  • MPPT_periodic()
    • Frequency in Hz: 8.
    • Delay: 4
      Integer to impose a sequence (between 0 and main_freq/function_freq)
    • Autorun: TRUE
      Periodic function automatically starts after init.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw MPPT.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="MPPT" dir="energy">
<doc>
<description>
Maximum Power Point Tracker
Solar Cells control board by Michel
</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="MPPT">
<dl_setting MAX="3" MIN="1" STEP="1" VAR="MPPT_mode" module="MPPT"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="MPPT.h"/>
</header>
<init fun="MPPT_init()"/>
<periodic fun="MPPT_periodic()" freq="8." delay="4" autorun="TRUE"/>
<makefile target="ap">
<file name="MPPT.c"/>
</makefile>
<makefile target="sim">
<file name="sim_MPPT.c"/>
</makefile>
</module>