Actuators Driver for Bebop 1 and 2
No detailed description...
Example for airframe file
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
<module name="actuators_bebop">
b'<configure name="BEBOP_ACTUATORS_I2C_DEV" value="i2cX" />\n '
</module>
Module configuration options
Configure Options
- name:
BEBOP_ACTUATORS_I2C_DEV
value: i2cX
Description: I2C port (default i2c1)
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw actuators_bebop.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="actuators_bebop" dir="actuators" task="actuators">
<doc>
<description>
Actuators Driver for Bebop 1 and 2
</description>
<configure name="BEBOP_ACTUATORS_I2C_DEV" value="i2cX" description="I2C port (default i2c1)"/>
</doc>
<dep>
<depends>i2c,actuators</depends>
<provides>actuators</provides>
</dep>
<header>
<file name="actuators.h" dir="boards/bebop"/>
</header>
<makefile target="ap">
<configure name="BEBOP_ACTUATORS_I2C_DEV" default="i2c1" case="upper|lower"/>
<define name="BEBOP_ACTUATORS_I2C_DEV" value="$(BEBOP_ACTUATORS_I2C_DEV_LOWER)"/>
<define name="USE_$(BEBOP_ACTUATORS_I2C_DEV_UPPER)"/>
<file name="actuators.c" dir="$(SRC_BOARD)"/>
<test firmware="rotorcraft">
<configure name="SRC_BOARD" value="boards/bebop"/>
<define name="BEBOP_ACTUATORS_I2C_DEV" value="i2c1"/>
<define name="USE_I2C1"/>
<define name="get_servo_idx(X)" value="X"/>
</test>
</makefile>
</module>