INS which just passes GPS through.
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_gps_passthrough">
b'<define name="INS_PT_GPS_ID" value="GPS_MULTI_ID" />\n '
</module>
Module configuration options
Define Options
- name:
INS_PT_GPS_ID
value: GPS_MULTI_ID
Description: ABI sender ID of the GPS to use
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_gps_passthrough.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="ins_gps_passthrough" dir="ins" task="estimation">
<doc>
<description>
INS which just passes GPS through.
</description>
<define name="INS_PT_GPS_ID" value="GPS_MULTI_ID" description="ABI sender ID of the GPS to use"/>
</doc>
<dep>
<depends>@gps</depends>
<provides>ins</provides>
</dep>
<header>
<file name="ins_gps_passthrough.h"/>
</header>
<init fun="ins_gps_passthrough_init()"/>
<makefile target="ap|nps" firmware="rotorcraft">
<define name="INS_TYPE_H" value="modules/ins/ins_gps_passthrough.h" type="string"/>
<file name="ins.c"/>
<file name="ins_gps_passthrough.c"/>
<test firmware="rotorcraft"/>
</makefile>
<makefile target="ap|sim|nps" firmware="fixedwing">
<define name="INS_TYPE_H" value="modules/ins/ins_gps_passthrough.h" type="string"/>
<file name="ins.c"/>
<file name="ins_gps_passthrough_utm.c"/>
</makefile>
<makefile target="ap|nps" firmware="rover">
<define name="INS_TYPE_H" value="modules/ins/ins_gps_passthrough.h" type="string"/>
<file name="ins.c"/>
<file name="ins_gps_passthrough.c"/>
</makefile>
</module>