Paparazzi UAS  v5.15_devel-47-g0391b4d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_nps module

Simulated GPS for NPS.

For NPS simulator. Can model GPS noise, bias and latency. The GPS sensor configuration is done in the header file referenced by NPS_SENSORS_PARAMS.

Example for airframe file

Add to your firmware section:

1 <module name="gps_nps"/>

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.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw gps_nps.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="gps_nps" dir="gps">
<doc>
<description>
Simulated GPS for NPS.
For NPS simulator. Can model GPS noise, bias and latency.
The GPS sensor configuration is done in the header file referenced by NPS_SENSORS_PARAMS.
</description>
</doc>
<autoload name="gps"/>
<header>
<file name="gps.h" dir="subsystems"/>
</header>
<init fun="gps_nps_init()"/>
<periodic fun="gps_nps_periodic_check()" freq="1." autorun="TRUE"/>
<makefile target="nps|hitl">
<file name="gps_sim_nps.c" dir="subsystems/gps"/>
<define name="GPS_TYPE_H" value="subsystems/gps/gps_sim_nps.h" type="string"/>
</makefile>
</module>