Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
imu_ardrone2 module

IMU on Parrot ARDrone2.

No detailed description...

Example for airframe file

Add to your firmware section:

<module name="imu_ardrone2"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw imu_ardrone2.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="imu_ardrone2" dir="imu" task="sensors">
<doc>
<description>
IMU on Parrot ARDrone2.
</description>
</doc>
<dep>
<depends>uart,imu_common</depends>
<provides>imu,mag,sonar</provides>
</dep>
<header>
<file name="imu_ardrone2.h"/>
</header>
<init fun="imu_ardrone2_init()"/>
<event fun="navdata_update()"/>
<makefile target="!sim|nps|fbw">
<!-- set fixed AHRS propegation frequencies -->
<configure name="AHRS_PROPAGATE_FREQUENCY" default="200"/>
<define name="AHRS_PROPAGATE_FREQUENCY" value="$(AHRS_PROPAGATE_FREQUENCY)"/>
<configure name="AHRS_CORRECT_FREQUENCY" default="200"/>
<define name="AHRS_CORRECT_FREQUENCY" value="$(AHRS_CORRECT_FREQUENCY)"/>
<file name="imu_ardrone2.c"/>
<file name="navdata.c" dir="boards/ardrone"/>
<test>
<include name="boards/ardrone"/>
<define name="_GNU_SOURCE"/>
</test>
</makefile>
</module>