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

pca9685 additional servo driver

in a c code file write pca9865_set_servo(12, 1500); to set servo number 12. In the flight plan you can use call_once fun="pca9865_set_servo(12, 1500)"

Example for airframe file

Add to your firmware section:

<module name="pca9685"/>

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.

Periodic Functions

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

  • pca9685_i2c_periodic()
    • Frequency in Hz: 10
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw pca9685.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="pca9685" dir="pca9685">
<doc>
<description>
pca9685 additional servo driver
in a c code file write pca9865_set_servo(12, 1500); to set servo number 12.
In the flight plan you can use call_once fun="pca9865_set_servo(12, 1500)"
</description>
</doc>
<settings>
</settings>
<header>
<file name="pca9685_i2c.h"/>
</header>
<init fun="pca9685_i2c_init()"/>
<periodic fun="pca9685_i2c_periodic()" freq="10"/>
<event fun="pca9685_i2c_event()"/>
<makefile>
<file name="pca9685_i2c.c"/>
</makefile>
</module>