Common base module for INS_INT
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!
<module name="ins_int_common">
b'<define name="USE_INS_NAV_INIT" value="TRUE|FALSE" />\n '
b'<define name="INS_INT_BARO_ID" value="BARO_BOARD_SENDER_ID" />\n '
b'<define name="INS_INT_GPS_ID" value="GPS_MULTI_ID" />\n '
b'<define name="INS_INT_IMU_ID" value="ABI_BROADCAST" />\n '
b'<define name="INS_INT_VEL_ID" value="ABI_BROADCAST" />\n '
</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_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
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_int_common.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="ins_int_common" dir="ins" task="estimation">
<doc>
<description>
Common base module for INS_INT
</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_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"/>
</doc>
<dep>
<depends>@imu,@gps|@position|@velocity</depends>
<provides>ins</provides>
</dep>
<header>
<file name="ins_int.h" dir="modules/ins"/>
</header>
<init fun="ins_int_init()"/>
<makefile target="ap|nps">
<file name="ins.c"/>
<file name="ins_int.c"/>
<test firmware="rotorcraft"/>
</makefile>
</module>