Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_udp module

GPS via UDP.

Read GPS messages from UDP port 7000.

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="gps_udp">
2  <define name="GPS_UDP_HOST" value="" />
3 </module>

Module configuration options

Define Options

  • name: GPS_UDP_HOST value:
    Description: host sending GPS messages

Auto-loaded modules

The following modules are automatically loaded (just as if you had added them in the airframe file)

Module functions

Init Functions

These initialization functions are called once on startup.

Periodic Functions

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


Header Files

The following headers are automatically included in modules.h

Source Files

Raw gps_udp.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="gps_udp" dir="gps">
GPS via UDP.
Read GPS messages from UDP port 7000.
<define name="GPS_UDP_HOST" value="" description="host sending GPS messages"/>
<autoload name="gps"/>
<autoload name="gps_nps"/>
<autoload name="gps_sim"/>
<file name="gps.h" dir="subsystems"/>
<init fun="gps_udp_init()"/>
<periodic fun="gps_udp_periodic_check()" freq="1." autorun="TRUE"/>
<makefile target="ap">
<file name="gps_udp.c" dir="subsystems/gps"/>
ifneq (,$(findstring $(SECONDARY_GPS), udp))
# this is the secondary GPS
ap.CFLAGS += -DGPS_SECONDARY_TYPE_H=\"subsystems/gps/gps_udp.h\"
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_udp.h\"
# plain old single GPS usage
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_udp.h\"