Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ins_extended module

extended INS with vertical filter using sonar.

No detailed description...

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="ins_extended">
2  <define name="USE_INS_NAV_INIT" value="TRUE|FALSE" />
3  <define name="INS_INT_SONAR_ID" value="ABI_BROADCAST" />
4  <define name="INS_INT_BARO_ID" value="BARO_BOARD_SENDER_ID" />
5  <define name="INS_INT_GPS_ID" value="GPS_MULTI_ID" />
6  <define name="INS_INT_IMU_ID" value="ABI_BROADCAST" />
7  <define name="INS_INT_VEL_ID" value="ABI_BROADCAST" />
8  <define name="INS_SONAR_OFFSET" value="0.0" />
9  <define name="INS_SONAR_MIN_RANGE" value="0.001" />
10  <define name="INS_SONAR_MAX_RANGE" value="4.0" />
11  <define name="INS_SONAR_UPDATE_ON_AGL" value="FALSE" />
12 </module>

Module configuration options

Define Options

  • name: USE_INS_NAV_INIT value: TRUE|FALSE
    Description: Initialize the origin of the local coordinate system from flight plan. (Default: TRUE)
  • name: INS_INT_SONAR_ID value: ABI_BROADCAST
    Description: The ABI sender id of the sonar to use
  • name: INS_INT_BARO_ID value: BARO_BOARD_SENDER_ID
    Description: The ABI sender id of the baro to use
  • name: INS_INT_GPS_ID value: GPS_MULTI_ID
    Description: The ABI sender id of the GPS to use
  • name: INS_INT_IMU_ID value: ABI_BROADCAST
    Description: The ABI sender id of the IMU to use
  • name: INS_INT_VEL_ID value: ABI_BROADCAST
    Description: The ABI sender id of the VELOCITY_ESTIMATE (e.g. from opticflow
  • name: INS_SONAR_OFFSET value: 0.0
    Description: sonar offset in meters
  • name: INS_SONAR_MIN_RANGE value: 0.001
    Description: min sonar range in meters
  • name: INS_SONAR_MAX_RANGE value: 4.0
    Description: max sonar range in meters
  • name: INS_SONAR_UPDATE_ON_AGL value: FALSE
    Description: assume flat ground and use sonar for height

Module functions

Init Functions

These initialization functions are called once on startup.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw ins_extended.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="ins" dir="ins">
<doc>
<description>
extended INS with vertical filter using sonar.
</description>
<define name="USE_INS_NAV_INIT" value="TRUE|FALSE" description="Initialize the origin of the local coordinate system from flight plan. (Default: TRUE)"/>
<define name="INS_INT_SONAR_ID" value="ABI_BROADCAST" description="The ABI sender id of the sonar to use"/>
<define name="INS_INT_BARO_ID" value="BARO_BOARD_SENDER_ID" description="The ABI sender id of the baro to use"/>
<define name="INS_INT_GPS_ID" value="GPS_MULTI_ID" description="The ABI sender id of the GPS to use"/>
<define name="INS_INT_IMU_ID" value="ABI_BROADCAST" description="The ABI sender id of the IMU to use"/>
<define name="INS_INT_VEL_ID" value="ABI_BROADCAST" description="The ABI sender id of the VELOCITY_ESTIMATE (e.g. from opticflow"/>
<define name="INS_SONAR_OFFSET" value="0.0" description="sonar offset in meters"/>
<define name="INS_SONAR_MIN_RANGE" value="0.001" description="min sonar range in meters"/>
<define name="INS_SONAR_MAX_RANGE" value="4.0" description="max sonar range in meters"/>
<define name="INS_SONAR_UPDATE_ON_AGL" value="FALSE" description="assume flat ground and use sonar for height"/>
</doc>
<header>
<file name="ins_int.h" dir="subsystems/ins"/>
</header>
<init fun="ins_int_init()"/>
<makefile target="ap|nps">
<define name="INS_TYPE_H" value="subsystems/ins/ins_int.h" type="string"/>
<file name="ins.c" dir="subsystems"/>
<file name="ins_int.c" dir="subsystems/ins"/>
<file name="vf_extended_float.c" dir="subsystems/ins"/>
<define name="USE_VFF_EXTENDED"/>
</makefile>
</module>