[fixedwing] fix ap/fbw split: setting only for ap target

This commit is contained in:
Felix Ruess
2013-02-09 01:11:54 +01:00
parent 83d8e8596c
commit cdf1ebfb36
2 changed files with 3 additions and 12 deletions
@@ -125,8 +125,7 @@ endif
#
ns_srcs += mcu_periph/uart.c
ns_srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c
ns_srcs += subsystems/settings.c
ns_srcs += $(SRC_ARCH)/subsystems/settings_arch.c
#
# ANALOG
@@ -160,6 +159,8 @@ ap_srcs += $(SRC_FIRMWARE)/main_ap.c
ap_srcs += $(SRC_FIRMWARE)/autopilot.c
ap_srcs += $(SRC_FIRMWARE)/ap_downlink.c
ap_srcs += state.c
ap_srcs += subsystems/settings.c
ap_srcs += $(SRC_ARCH)/subsystems/settings_arch.c
# BARO
ifeq ($(BOARD), umarim)
@@ -33,16 +33,6 @@ ap.CFLAGS += -DAHRS_TRIGGERED_ATTITUDE_LOOP
ifeq ($(TARGET), fbw)
# when compiling FBW only, the settings need to know the AHRS_TYPE
fbw.CFLAGS += -DAHRS_TYPE_H=\"modules/ins/ins_xsens.h\"
fbw.CFLAGS += -DUSE_INS_MODULE
endif
#########################################
## GPS