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

Keeps track of other aircraft in airspace

No detailed description...

Example for airframe file

Add to your firmware section:

<module name="traffic_info"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Datalink Functions

Whenever the specified datalink message is received, the corresponing handler function is called.

  • on message ACINFO call parse_acinfo_dl(buf)
  • on message ACINFO_LLA call parse_acinfo_dl(buf)
  • on message GPS_SMALL call parse_acinfo_dl(buf)
  • on message GPS call parse_acinfo_dl(buf)
  • on message GPS_LLA call parse_acinfo_dl(buf)

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw traffic_info.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="traffic_info" dir="multi" task="core">
<doc>
<description>Keeps track of other aircraft in airspace</description>
</doc>
<header>
<file name="traffic_info.h"/>
</header>
<init fun="traffic_info_init()"/>
<datalink message="ACINFO" fun="parse_acinfo_dl(buf)"/>
<datalink message="ACINFO_LLA" fun="parse_acinfo_dl(buf)"/>
<datalink message="GPS_SMALL" fun="parse_acinfo_dl(buf)" class="telemetry"/>
<datalink message="GPS" fun="parse_acinfo_dl(buf)" class="telemetry"/>
<datalink message="GPS_LLA" fun="parse_acinfo_dl(buf)" class="telemetry"/>
<makefile>
<file name="traffic_info.c"/>
<define name="TRAFFIC_INFO"/>
</makefile>
</module>