Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Configure Mikrokopter MKK v2

Module XML file: configure_actuators_mkk_v2.xml

0 BLDC motor controllers (requires subsystem actuators_mkk_v2)

Example for airframe file

1 <modules>
2  <load name="configure_actuators_mkk_v2.xml"/>
3 </modules>

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.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw configure_actuators_mkk_v2.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="config">
<doc>
<description>Configure Mikrokopter MKK v2.0 BLDC motor controllers (requires subsystem actuators_mkk_v2)</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="mkk">
<dl_setting var="config_mkk_v2.addr" min="0" step="1" max="3" module="modules/config/config_mkk_v2" shortname="Get" values="0x52|0x54|0x56|0x58" handler="GetConfig"/>
<dl_setting var="config_mkk_v2.nb_err" min="0" step="1" max="3000" shortname="err" />
<dl_setting var="config_mkk_v2_eeprom.revision" min="0" step="1" max="255" shortname="ee.rev" />
<dl_setting var="config_mkk_v2_eeprom.SetMask" min="0" step="1" max="255" module="modules/config/config_mkk_v2" shortname="ee.reset" handler="ResetDefault" />
<dl_setting var="config_mkk_v2_eeprom.PwmScaling" min="0" step="1" max="255" module="modules/config/config_mkk_v2" shortname="ee.pwm" handler="SetPwmScaling" />
<dl_setting var="config_mkk_v2_eeprom.CurrentLimit" min="0" step="1" max="255" module="modules/config/config_mkk_v2" shortname="ee.amp.lim" handler="SetCurrentLimit" />
<dl_setting var="config_mkk_v2_eeprom.TempLimit" min="0" step="1" max="255" module="modules/config/config_mkk_v2" shortname="ee.tmp.lim" handler="SetTempLimit" />
<dl_setting var="config_mkk_v2_eeprom.CurrentScaling" min="0" step="1" max="255" module="modules/config/config_mkk_v2" shortname="ee.amp.scl" handler="SetCurrentScaling" />
<dl_setting var="config_mkk_v2_eeprom.BitConfig" min="4" step="1" max="5" module="modules/config/config_mkk_v2" shortname="ee.bit.msk" values="Normal|Reversed" handler="SetBitConfig" />
<dl_setting var="config_mkk_v2_eeprom.crc" min="0" step="1" max="255" shortname="ee.crc" />
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="config_mkk_v2.h"/>
</header>
<init fun="config_mkk_v2_init()"/>
<periodic fun="config_mkk_v2_periodic_read_status()" period="0.1" autorun="TRUE"/>
<periodic fun="config_mkk_v2_periodic_telemetry()" period="1" autorun="TRUE"/>
<makefile>
<file name="config_mkk_v2.c"/>
</makefile>
</module>