Paparazzi UAS  v6.1.0_stable
Paparazzi is a free software Unmanned Aircraft System.
autopilot_gnc module

Autopilot Guidance Navigation anc Control

No detailed description...

Example for airframe file

Add to your firmware section:

<module name="autopilot_gnc"/>

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.

  • autopilot_periodic()
    • Running at maximum module frequency.
    • 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

  • ./autopilot.c
  • /autopilot_firmware.c
  • /autopilot_utils.c
  • /autopilot_static.c
  • /autopilot_generated.c
  • /autopilot_guided.c

Raw autopilot_gnc.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="autopilot_gnc" task="control">
<doc>
<description>
Autopilot Guidance Navigation anc Control
</description>
</doc>
<dep>
<depends>system_core,@guidance,@navigation,@commands</depends>
<provides>autopilot</provides>
</dep>
<header>
<file name="autopilot.h" dir="."/>
</header>
<init fun="autopilot_init()"/>
<periodic fun="autopilot_periodic()"/>
<event fun="autopilot_event()"/>
<makefile target="!fbw">
<file name="autopilot.c" dir="."/>
<file name="autopilot_firmware.c" dir="$(SRC_FIRMWARE)"/>
<file name="autopilot_utils.c" dir="$(SRC_FIRMWARE)"/>
<file name="autopilot_static.c" dir="$(SRC_FIRMWARE)" cond="ifneq ($(USE_GENERATED_AUTOPILOT), TRUE)"/>
<file name="autopilot_generated.c" dir="$(SRC_FIRMWARE)" cond="ifeq ($(USE_GENERATED_AUTOPILOT), TRUE)"/>
<define name="USE_GENERATED_AUTOPILOT" value="1" cond="ifeq ($(USE_GENERATED_AUTOPILOT), TRUE)"/>
</makefile>
<makefile target="!fbw" firmware="rotorcraft">
<file name="autopilot_guided.c" dir="$(SRC_FIRMWARE)"/>
</makefile>
</module>