mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 23:46:04 +08:00
363dec8693
* [autopilot] refactor autopilot API for both firmwares With this, fixedwing and rotorcraft are mostly using the same interface for the autopilot. Some specific code and messages handling are still firmware dependent. A large part of the autopilot logic of the fixedwing is moved from main_ap to autopilot_static. More getter/setter functions are provided. * [autopilot] update the rest of the system and the conf for using the refactored autopilot API * [autopilot] fix some errors from CI servers * [actuators] use dummy actuators module to prevent autoloading * Rename Bart_heliDD_INDI.xml to tudelft_bs_helidd_indi.xml * Rename Bart_heliDD_pid.xml to tudelft_bs_helidd_pid.xml * Delete tudelft_course2016_bebop_colorfilter.xml * Delete tudelft_course2016_bebop_avoider.xml * [actuators] don't autoload actuators when set to 'none' * [gcs] autodetect firmware for strip mode button
56 lines
2.9 KiB
XML
56 lines
2.9 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="radio_control_superbitrf_rc" dir="radio_control">
|
|
<doc>
|
|
<description>
|
|
Radio control based on the SuperbitRF chip
|
|
</description>
|
|
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
|
|
<configure name="SUPERBITRF_SPI_DEV" value="SPI2" description="SPI used for SuperbitRF"/>
|
|
<configure name="SUPERBITRF_SPI_SLAVE_IDX" value="2" description="SPI slave number for SuperbitRF"/>
|
|
</doc>
|
|
<settings>
|
|
<dl_settings>
|
|
<dl_settings NAME="Superbit">
|
|
<dl_setting var="settings_store_flag" min="1" step="1" max="1" shortname="store" handler="StoreSettings" module="subsystems/settings" values="Store"/>
|
|
<dl_setting var="superbitrf.bind_mfg_id32" type="uint32" min="0" step="1" max="4294967295" shortname ="mfg_id" persistent="true" module="subsystems/datalink/superbitrf" handler="set_mfg_id"/>
|
|
<dl_setting var="superbitrf.num_channels" type="uint8" min="0" step="1" max="14" shortname ="#chan" persistent="true" module="subsystems/datalink/superbitrf"/>
|
|
<dl_setting var="superbitrf.protocol" type="uint8" min="0" step="1" max="32" shortname ="prot" persistent="true" module="subsystems/datalink/superbitrf" handler="set_protocol"/>
|
|
</dl_settings>
|
|
</dl_settings>
|
|
</settings>
|
|
<header>
|
|
<file name="superbitrf_rc.h" dir="subsystems/radio_control"/>
|
|
</header>
|
|
<makefile target="ap|fbw|sim|nps">
|
|
<configure name="RADIO_CONTROL_LED" default="none"/>
|
|
<configure name="SUPERBITRF_SPI_DEV" default="SPI2"/>
|
|
<configure name="SUPERBITRF_SPI_SLAVE_IDX" default="2"/>
|
|
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
|
|
<define name="RADIO_CONTROL_TYPE_H" value="subsystems/radio_control/superbitrf_rc.h" type="string"/>
|
|
</makefile>
|
|
<makefile target="fbw">
|
|
<define name="RADIO_CONTROL"/>
|
|
<define name="RADIO_CONTROL_TYPE_SUPERBITRF"/>
|
|
<define name="USE_SUPERBITRF"/>
|
|
<define name="USE_$(SUPERBITRF_SPI_DEV)"/>
|
|
<define name="USE_SPI_SLAVE$(SUPERBITRF_SPI_SLAVE_IDX)"/>
|
|
<file name="radio_control.c" dir="subsystems"/>
|
|
<file name="superbitrf_rc.c" dir="subsystems/radio_control"/>
|
|
<file name="superbitrf.c" dir="subsystems/datalink"/>
|
|
<file name="cyrf6936.c" dir="peripherals"/>
|
|
</makefile>
|
|
<makefile target="ap" cond="ifeq (,$(findstring $(SEPARATE_FBW),1 TRUE))">
|
|
<define name="RADIO_CONTROL"/>
|
|
<define name="RADIO_CONTROL_TYPE_SUPERBITRF"/>
|
|
<define name="USE_SUPERBITRF"/>
|
|
<define name="USE_$(SUPERBITRF_SPI_DEV)"/>
|
|
<define name="USE_SPI_SLAVE$(SUPERBITRF_SPI_SLAVE_IDX)"/>
|
|
<file name="radio_control.c" dir="subsystems"/>
|
|
<file name="superbitrf_rc.c" dir="subsystems/radio_control"/>
|
|
<file name="superbitrf.c" dir="subsystems/datalink"/>
|
|
<file name="cyrf6936.c" dir="peripherals"/>
|
|
</makefile>
|
|
</module>
|
|
|