mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
d70badc2bf
include booz2_ins_hff.makefile to use the filter and define GPS_LAG in seconds: e.g. -DGPS_LAG=0.8 removed bias estimation in hff since that was plain wrong
158 lines
3.6 KiB
Makefile
158 lines
3.6 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
# Copyright (C) 2008 Antoine Drouin
|
|
#
|
|
# This file is part of paparazzi.
|
|
#
|
|
# paparazzi is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
#
|
|
# paparazzi is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with paparazzi; see the file COPYING. If not, write to
|
|
# the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
# Boston, MA 02111-1307, USA.
|
|
#
|
|
#
|
|
|
|
ARCHI=arm7
|
|
|
|
FLASH_MODE = IAP
|
|
|
|
ap.ARCHDIR = $(ARCHI)
|
|
ap.ARCH = arm7tdmi
|
|
ap.TARGET = ap
|
|
ap.TARGETDIR = ap
|
|
|
|
|
|
ap.CFLAGS += $(BOOZ_INC)
|
|
ap.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
|
|
ap.srcs += $(SRC_BOOZ)/booz2_main.c
|
|
|
|
ap.CFLAGS += -DPERIPHERALS_AUTO_INIT
|
|
|
|
ap.CFLAGS += -DUSE_LED
|
|
|
|
ap.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c $(SRC_ARCH)/armVIC.c
|
|
ap.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
|
|
# -DTIME_LED=1
|
|
|
|
ap.CFLAGS += -DUSE_UART1 -DUART1_VIC_SLOT=6 -DUART1_BAUD=MODEM_BAUD
|
|
ap.srcs += $(SRC_ARCH)/uart_hw.c
|
|
|
|
ap.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_DEVICE=Uart1
|
|
ap.srcs += $(SRC_BOOZ)/booz2_telemetry.c \
|
|
downlink.c \
|
|
pprz_transport.c
|
|
|
|
ap.CFLAGS += -DDATALINK=PPRZ -DPPRZ_UART=Uart1
|
|
ap.srcs += $(SRC_BOOZ)/booz2_datalink.c
|
|
|
|
ap.srcs += $(SRC_BOOZ)/booz2_commands.c
|
|
|
|
#
|
|
# Radio control choice
|
|
#
|
|
# include booz2_radio_control_ppm.makefile
|
|
# or
|
|
# include booz2_radio_control_spektrum.makefile
|
|
#
|
|
|
|
#
|
|
# Actuator choice
|
|
#
|
|
# include booz2_actuators_buss.makefile
|
|
# or
|
|
# include booz2_actuators_asctec.makefile
|
|
#
|
|
|
|
#
|
|
# IMU choice
|
|
#
|
|
# include booz2_imu_b2v1.makefile
|
|
# or
|
|
# include booz2_imu_crista.makefile
|
|
#
|
|
|
|
|
|
|
|
ap.CFLAGS += -DBOOZ2_ANALOG_BARO_LED=2 -DBOOZ2_ANALOG_BARO_PERIOD='SYS_TICS_OF_SEC((1./100.))'
|
|
ap.srcs += $(SRC_BOOZ)/booz2_analog_baro.c
|
|
|
|
ap.CFLAGS += -DBOOZ2_ANALOG_BATTERY_PERIOD='SYS_TICS_OF_SEC((1./10.))'
|
|
ap.srcs += $(SRC_BOOZ)/booz2_battery.c
|
|
|
|
ap.CFLAGS += -DADC0_VIC_SLOT=2
|
|
ap.CFLAGS += -DADC1_VIC_SLOT=3
|
|
ap.srcs += $(SRC_BOOZ)/booz2_analog.c \
|
|
$(SRC_BOOZ_ARCH)/booz2_analog_hw.c
|
|
|
|
#
|
|
# GPS choice
|
|
#
|
|
# include booz2_gps.makefile
|
|
# or
|
|
# nothing
|
|
#
|
|
|
|
|
|
#
|
|
# AHRS choice
|
|
#
|
|
# include booz2_ahrs_cmpl.makefile
|
|
# or
|
|
# include booz2_ahrs_lkf.makefile
|
|
#
|
|
|
|
ap.srcs += $(SRC_BOOZ)/booz2_autopilot.c
|
|
|
|
ap.srcs += math/pprz_trig_int.c
|
|
ap.srcs += $(SRC_BOOZ)/booz_stabilization.c
|
|
ap.srcs += $(SRC_BOOZ)/stabilization/booz_stabilization_rate.c
|
|
|
|
|
|
ap.CFLAGS += -DSTABILISATION_ATTITUDE_TYPE_INT
|
|
ap.CFLAGS += -DSTABILISATION_ATTITUDE_H=\"stabilization/booz_stabilization_attitude_int.h\"
|
|
ap.CFLAGS += -DSTABILISATION_ATTITUDE_REF_H=\"stabilization/booz_stabilization_attitude_ref_euler_int.h\"
|
|
ap.srcs += $(SRC_BOOZ)/stabilization/booz_stabilization_attitude_ref_euler_int.c
|
|
ap.srcs += $(SRC_BOOZ)/stabilization/booz_stabilization_attitude_euler_int.c
|
|
|
|
ap.CFLAGS += -DUSE_NAVIGATION
|
|
ap.srcs += $(SRC_BOOZ)/guidance/booz2_guidance_h.c
|
|
ap.srcs += $(SRC_BOOZ)/guidance/booz2_guidance_v.c
|
|
|
|
ap.srcs += $(SRC_BOOZ)/booz2_ins.c
|
|
ap.srcs += math/pprz_geodetic_int.c math/pprz_geodetic_float.c
|
|
|
|
#
|
|
# INS choice
|
|
#
|
|
# include booz2_ins_hff.makefile
|
|
# or
|
|
# nothing
|
|
#
|
|
|
|
# vertical filter float version
|
|
ap.srcs += $(SRC_BOOZ)/ins/booz2_vf_float.c
|
|
ap.CFLAGS += -DUSE_VFF -DDT_VFILTER="(1./512.)" -DFLOAT_T=float
|
|
|
|
ap.srcs += $(SRC_BOOZ)/booz2_navigation.c
|
|
|
|
|
|
#
|
|
# FMS choice
|
|
#
|
|
# include booz2_fms_test_signal.makefile
|
|
# or
|
|
# include booz2_fms_datalink.makefile
|
|
# or
|
|
# nothing
|
|
#
|