Files
paparazzi/conf/modules/gps_intermcu.xml
T
Gautier Hattenberger e436d78c84 [autopilot] merge AP and FBW in normal operation (#2828)
There is no longer a separated FBW in normal operation for fixedwing,
only a single AP task/thread.
The code for main_ap is now factorized for all firmwares.
Dual MCU support (separated AP and FBW) is still possible, based on the
rotorcraft implementation and intermcu pprzlink messages. Relevant code
is also factorized and available in all firmwares.
The recovery mode (in case of hard fault) is still available for
fixedwing with ChibiOS implementation.
Only intermcu_uart is supported at the moment. Other options (spi/can)
might be added back in the future if really used.

Some other evolution are made:
- in the radio_control and actuators modules, now integrated to AP and
using ABI messages
- the message parsing on datalink event (defined in module) that is now
properly filtering the messages based on their class and allowing to
have multiple callbacks for the same message
- cleaning the part of code that were using the old intermcu fixedwing
interface
2022-03-10 14:21:04 +01:00

48 lines
1.4 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="gps_intermcu" dir="gps" task="sensors">
<doc>
<description>
Remote GPS via intermcu.
Parses the IMCU_REMOTE_GPS message and publishes it onboard via ABI.
</description>
</doc>
<dep>
<depends>gps,@datalink</depends>
<provides>gps</provides>
</dep>
<autoload name="gps_nps"/>
<autoload name="gps_sim"/>
<header>
<file name="gps.h"/>
</header>
<init fun="gps_intermcu_init()"/>
<periodic fun="gps_intermcu_periodic_check()" freq="1." autorun="TRUE"/>
<datalink message="IMCU_REMOTE_GPS" fun="gps_intermcu_parse_IMCU_REMOTE_GPS(buf)"/>
<makefile target="ap|fbw">
<file name="gps_intermcu.c"/>
<raw>
ifdef SECONDARY_GPS
ifneq (,$(findstring $(SECONDARY_GPS), intermcu))
# this is the secondary GPS
$(TARGET).CFLAGS += -DGPS_SECONDARY_TYPE_H=\"modules/gps/gps_intermcu.h\"
$(TARGET).CFLAGS += -DSECONDARY_GPS=GPS_IMCU
else
$(TARGET).CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_intermcu.h\"
$(TARGET).CFLAGS += -DPRIMARY_GPS=GPS_IMCU
endif
else
# plain old single GPS usage
$(TARGET).CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_intermcu.h\"
endif
</raw>
<test firmware="rotorcraft">
<define name="PRIMARY_GPS" value="GPS_IMCU"/>
</test>
</makefile>
<makefile target="fbw">
<define name="USE_GPS"/>
</makefile>
</module>